Please enable JavaScript.
Coggle requires JavaScript to display documents.
golang (basics (basic types (bool (Channels), string, int int8 int16 …
golang
basics
packages
convention
same as last element of import path
exported names
begins with capital letters
functions
multiple return values
named return values
Value reciever
Pointer Receiver
defer
Equivalent of finally in Java
executes if there is a panic or not
recover
Executes when a panic occurs
variables
short variable declaration
can be used from inside a function only
keyword: var
undeclared
zero value
basic types
bool
Channels
string
int int8 int16 int32 int64
uint uint8 uint16 uint32 uint64 uintptr
byte // alias for uint8
rune // alias for int32
float32 float64
complex64 complex128
constants
keyword:const
concurrency
Go routines
Wait Group
wait and notify
WaitGroup.Done
Channels
Connect between go routines
closure
function return
method
function with receiver
Inheritance
Diamond Problem
Solved how?
Go Memory Model?
Language Spec
Typing System
Covariant Return types?