This story introduces another set of interfaces-related topics in Golang. It explains things like method…
Literals in source code allow to specify fixed values like numbers, strings or booleans. Go belongs to languages…
Formal grammar specifies what constitutes syntactically valid program in Go (or other programming…
Go is statically typed programming language. The set of values allowed to store in variable is determined by the variable’s…
This story explains remaining content from language specification touching methods. It’s strongly advised to read 1st…
Let’s start with quiz comparing two programs which differ only by single statement. Program C uses constant declaration (source code):
type N int
func main() { const c = 1 var n N = c fmt.Println(n)}
Declaration binds identifier to value like package, variable, type etc. After declaration it’s important to know where in the source…
Every source file written in Go is built from 3 “sections”:
package name // package…