251
|
1 |
# INI |
|
2 |
|
|
3 |
[![Build Status](https://img.shields.io/travis/go-ini/ini/master.svg?style=for-the-badge&logo=travis)](https://travis-ci.org/go-ini/ini) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph)](https://sourcegraph.com/github.com/go-ini/ini) |
|
4 |
|
|
5 |
![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) |
|
6 |
|
|
7 |
Package ini provides INI file read and write functionality in Go. |
|
8 |
|
|
9 |
## Features |
|
10 |
|
|
11 |
- Load from multiple data sources(`[]byte`, file and `io.ReadCloser`) with overwrites. |
|
12 |
- Read with recursion values. |
|
13 |
- Read with parent-child sections. |
|
14 |
- Read with auto-increment key names. |
|
15 |
- Read with multiple-line values. |
|
16 |
- Read with tons of helper methods. |
|
17 |
- Read and convert values to Go types. |
|
18 |
- Read and **WRITE** comments of sections and keys. |
|
19 |
- Manipulate sections, keys and comments with ease. |
|
20 |
- Keep sections and keys in order as you parse and save. |
|
21 |
|
|
22 |
## Installation |
|
23 |
|
|
24 |
The minimum requirement of Go is **1.6**. |
|
25 |
|
|
26 |
```sh |
|
27 |
$ go get gopkg.in/ini.v1 |
|
28 |
``` |
|
29 |
|
|
30 |
Please add `-u` flag to update in the future. |
|
31 |
|
|
32 |
## Getting Help |
|
33 |
|
|
34 |
- [Getting Started](https://ini.unknwon.io/docs/intro/getting_started) |
|
35 |
- [API Documentation](https://gowalker.org/gopkg.in/ini.v1) |
|
36 |
|
|
37 |
## License |
|
38 |
|
|
39 |
This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. |