Ben Chuanlong Du's Blog

It is never too late to learn.

Commonly Used File Formats for Configuration

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

  1. JSON is more commonly used for application data and configurations
    which are not intended to be read by human directly.

  2. TOML and YAML are more popular for application configurations which are …

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