Skip to content
Package ini provides INI file read and write functionality in Go.
Go Makefile
Branch: master
Clone or download

Latest commit

aligator struct: correctly mapping non unique sections to slice field (#242)
* bugfix: use the value from the correct section when using non unique sections in some special cases

* refactor wording and small fix
Latest commit 1fc6efb May 28, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
testdata Large python style multiline value fix (#210) Nov 6, 2019
.gitignore file: add load option UnescapeValueDoubleQuotes Oct 14, 2017
LICENSE license: update indeitfy information Oct 14, 2017
Makefile data_source: support io.Reader Mar 7, 2020
README.md Update README.md Apr 18, 2020
bench_test.go *: refactor constants to use camelcase Feb 17, 2019
codecov.yml codecov: formalize coverage settings (#232) Mar 29, 2020
data_source.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
deprecated.go *: some move around Aug 7, 2019
error.go *: fix golint complaints Mar 26, 2019
file.go *: clean up code and error message Mar 15, 2020
file_test.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
helper.go *: some move around Aug 7, 2019
helper_test.go *: some move around Aug 7, 2019
ini.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
ini_python_multiline_test.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
ini_test.go data_source: support io.Reader Mar 7, 2020
key.go refactor: optimize repetitive parsing code (#233) Mar 31, 2020
key_test.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
parser.go ci: migrate from Travis to GitHub Actions (#230) Mar 28, 2020
parser_test.go file: support custom key-value delimiters (#166) Oct 14, 2018
section.go file: support non-unique sections (#220) Mar 15, 2020
section_test.go section: misc fix Mar 27, 2019
struct.go struct: correctly mapping non unique sections to slice field (#242) May 28, 2020
struct_test.go struct: correctly mapping non unique sections to slice field (#242) May 28, 2020

README.md

INI

GitHub Workflow Status codecov GoDoc Sourcegraph

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

Features

  • Load from multiple data sources(file, []byte, io.Reader 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.

$ go get gopkg.in/ini.v1

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.

You can’t perform that action at this time.