Skip to content
Package ini provides INI file read and write functionality in Go.
Go Makefile
Branch: master
Clone or download
Latest commit 6982260 Nov 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Delete ISSUE_TEMPLATE.md Nov 20, 2019
testdata Large python style multiline value fix (#210) Nov 6, 2019
.gitignore file: add load option UnescapeValueDoubleQuotes Oct 14, 2017
.travis.yml ci: add Go 1.13 Oct 5, 2019
LICENSE license: update indeitfy information Oct 14, 2017
Makefile MISC: remove trailing whitespace and add missing newline (#133) Mar 2, 2018
README.md README: change badges position Nov 3, 2019
bench_test.go *: refactor constants to use camelcase Feb 17, 2019
data_source.go *: some move around Aug 7, 2019
deprecated.go *: some move around Aug 7, 2019
error.go *: fix golint complaints Mar 26, 2019
file.go *: some move around Aug 7, 2019
file_test.go key: deduplicate shadows while adding (#207) Sep 23, 2019
helper.go *: some move around Aug 7, 2019
helper_test.go *: some move around Aug 7, 2019
ini.go Bump version Nov 9, 2019
ini_internal_test.go *: some move around Aug 7, 2019
ini_python_multiline_test.go parser: support unmashalling to all basic type pointers (#214) Nov 9, 2019
ini_test.go ini_test: add test case for #198 Aug 6, 2019
key.go key: fix panic when recursive value has missing target (#191) Oct 18, 2019
key_test.go key: fix panic when recursive value has missing target (#191) Oct 18, 2019
parser.go parser: support unmashalling to all basic type pointers (#214) Nov 9, 2019
parser_test.go file: support custom key-value delimiters (#166) Oct 14, 2018
section.go section: misc fix Mar 27, 2019
section_test.go section: misc fix Mar 27, 2019
struct.go parser: support unmashalling to all basic type pointers (#214) Nov 9, 2019
struct_test.go parser: support unmashalling to all basic type pointers (#214) Nov 9, 2019

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.

$ 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.