Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
The package
maintells the Go compiler that the package should compile as an executable program instead of a shared library. Themainfunction in themainpackage is the entry point of the program.
Create Temp Files and Directories in Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Ordered Map in Golang
Tips & Traps¶
There are 2 implementations of ordered map in Golang orderedmap and go-ordered-map . orderedmap is more popular (based on GitHub statistics) and thus is preferred.
Parse TOML Files in Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
- If the schema of a TOML file is unknown,
you can parse it into a generic object (
anyormap[string]any). When parsing a TOML file into a generic object,map
Parse Version Semantics in Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Serialize and Deserialize JSON in Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!