Package go-ini provides INI file read and write functionality in Go.
- Load multiple data sources(
[]byte
, file andio.ReadCloser
) with overwrites. - Convenient usage of unmarshal like
json.Unmarshal
andyaml.Unmarshal
. - Support section to classify key-value items.
- Support extend to inherit key-value items from previous section.
- Read with recursion values.
- Read and auto-convert values to Go types.
- Manipulate sections, keys and comments with ease.
- Read and WRITE comments of sections and keys.
- Read with multiple-line values.
To use with latest changes:
go get github.com/ltick/go-ini
Please add -u
flag to update in the future.