Package ini provides INI file read and write functionality in Go.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github github: add issue and pull request templates Oct 14, 2017
testdata file: support custom key-value delimiters (#166) Oct 14, 2018
.gitignore file: add load option UnescapeValueDoubleQuotes Oct 14, 2017
.travis.yml ci: add Go 1.11.x Oct 14, 2018
LICENSE license: update indeitfy information Oct 14, 2017
Makefile MISC: remove trailing whitespace and add missing newline (#133) Mar 2, 2018
README.md README: add Go version requirement Sep 10, 2018
bench_test.go TESTING: improve overall code quality Oct 23, 2017
error.go #53 support boolean type key Aug 17, 2016
file.go file: trim space for original comment before prepending (#163) Dec 4, 2018
file_test.go file: fix incorrect multiline comment handling when write out (#157) Aug 18, 2018
ini.go struct: fix integer overflow in time.Duration conversion (#175) Dec 11, 2018
ini_internal_test.go TESTING: improve overall code quality Oct 23, 2017
ini_test.go file: support custom key-value delimiters (#166) Oct 14, 2018
key.go key: support nested values (#131) Nov 19, 2017
key_test.go key: support nested values (#131) Nov 19, 2017
parser.go parser: remove unreachable code (#170) Dec 3, 2018
parser_test.go file: support custom key-value delimiters (#166) Oct 14, 2018
section.go section: fix s.keyHash not updated with data overwrite (#149) Jul 12, 2018
section_test.go section: fix s.keyHash not updated with data overwrite (#149) Jul 12, 2018
struct.go struct: fix integer overflow in time.Duration conversion (#175) Dec 11, 2018
struct_test.go struct_test: fix test cases for Go 1.10 Mar 6, 2018

README.md

INI Build Status Sourcegraph

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

Features

  • Load from multiple data sources([]byte, file and io.ReadCloser) with overwrites.
  • Read with recursion values.
  • Read with parent-child sections.
  • Read with auto-increment key names.
  • Read with multiple-line values.
  • Read with tons of helper methods.
  • Read and convert values to Go types.
  • Read and WRITE comments of sections and keys.
  • Manipulate sections, keys and comments with ease.
  • Keep sections and keys in order as you parse and save.

Installation

The minimum requirement of Go is 1.6.

To use a tagged revision:

$ go get gopkg.in/ini.v1

To use with latest changes:

$ go get github.com/go-ini/ini

Please add -u flag to update in the future.

Getting Help

License

This project is under Apache v2 License. See the LICENSE file for the full license text.