Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. The package main tells the Go compiler that the package should compile as an executable program instead of a shared library. The main function in the main package is the entry point of the program.

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

  1. If the schema of a TOML file is unknown, you can parse it into a generic object (any or map[string]any). When parsing a TOML file into a generic object, map