Flexible data sources
Not only the light can be read from the file configuration, but also supports the []byte
type of pure data read and based io.ReadCloser
streaming reading.
Multiple formats Compatible
Broad support for a variety of file types, including but not limited my.cnf
.gitconfig
to, even unresolved partitions.
Natural type Enhancement
Automatically converts the value to the specified Go language native type, allowing the code to focus more on logical processing rather than the pit-father type conversion.
struct-Body mapping
Mapping the configuration file to a user-defined struct{}
structure, you can also reverse-map from the struct to the corresponding configuration file after you complete the operation.
Super-Divine Assistance
Automatic type conversions, candidate limits, fast slice generation, and instant data validation are much more than you might think!
Highly customizable
A variety of configuration loading policies, custom data validation rules, key names and key-value mappers, and so on, don't hurry up?
Address: https://ini.unknwon.io/
Awesome Go language INI file operation