Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.05 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.05 KB

INI Build Status Sourcegraph

Package go-ini provides INI file read and write functionality in Go.

简体中文

Feature

  • Load multiple data sources([]byte, file and io.ReadCloser) with overwrites.
  • Convenient usage of unmarshal like json.Unmarshal and yaml.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.

Installation

To use with latest changes:

go get github.com/ltick/go-ini

Please add -u flag to update in the future.

Getting Started

Loading from data sources