The most powerful, convenient and popular Go package for INI manipulations existed on Earth.
Not limited to read from a file, parse from []byte
type raw data or stream from io.ReadCloser
works like a charm.
Wide-range support of variant formats, include but not limited to my.cnf
, .gitconfig
, or even unparseable sections.
Automatically convert to native types of Go at no cost. Let you focus on the code logic and no more tedious conversions.
Map your configuration to a user-defined struct{}
to be more object-oriented. Map back and save when you get the work done.
Auto-type conversion, candidate value limitation, quick slice generation, in-fly data validation. More than you can ever imagine!
Multiple configuration load policies, custom data validation rules, key name and value mappers. Start hacking it now!