This is an old revision of the document!


Stuff regarding Go programming language.

  • proper brace placement to avoid semicolon insertion
  • “import path” versus “package name” (factored import statement)
  • fmt.Printf() format specifiers
  • named return values (explicit or allow to default)
  • type “zero values”
  • how to list all package methods from the command line?
  • how multi-platform things like Sqrt() work?
  • possible formats of for loop
  • neat uses of “defer” statements (stacked)
    • deferred call args are evaluated immediately
    • modifying named return values
  • package “init” functions
  • installation
  • /usr/lib/golang package structure (Go 1.13), personal src structure
  • go.1566638120.txt.gz
  • Last modified: 2019/08/24 09:15
  • by rpjday