Declaration binds identifier to value like package, variable, type etc. After declaration it’s important to know where in the source…
Package consists of source files within single directory. Inside such directory it’s illegal to have files from…
Label is used in break and continue statement where it’s optional but it’s required in goto statement. Scope of the label is the…
Understanding how scopes work requires prior knowledge about blocks which is covered in “Blocks in Go”.
Struct is a sequence of fields each with name and type. Usually it looks like:
Literals in source code allow to specify fixed values like numbers, strings or booleans. Go belongs to languages…
Type assertions are used to check if value held by interface type variable either implements desired interface or is of…