Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 02-Dec-2021 | - | 139 | 119 | |
testdata/ | H | 03-May-2022 | - | 215 | 176 | |
.gitignore | H A D | 02-Dec-2021 | 105 | 7 | 6 | |
.golangci.yml | H A D | 02-Dec-2021 | 345 | 22 | 20 | |
LICENSE | H A D | 02-Dec-2021 | 10 KiB | 192 | 155 | |
Makefile | H A D | 02-Dec-2021 | 239 | 16 | 10 | |
README.md | H A D | 02-Dec-2021 | 1.7 KiB | 44 | 30 | |
bench_test.go | H A D | 02-Dec-2021 | 2.5 KiB | 117 | 88 | |
codecov.yml | H A D | 02-Dec-2021 | 116 | 10 | 8 | |
data_source.go | H A D | 02-Dec-2021 | 1.9 KiB | 77 | 48 | |
deprecated.go | H A D | 02-Dec-2021 | 802 | 26 | 7 | |
error.go | H A D | 02-Dec-2021 | 1.1 KiB | 35 | 14 | |
file.go | H A D | 02-Dec-2021 | 13.2 KiB | 525 | 377 | |
file_test.go | H A D | 02-Dec-2021 | 13.1 KiB | 544 | 421 | |
helper.go | H A D | 02-Dec-2021 | 719 | 25 | 9 | |
helper_test.go | H A D | 02-Dec-2021 | 797 | 28 | 10 | |
ini.go | H A D | 02-Dec-2021 | 7.9 KiB | 177 | 84 | |
ini_test.go | H A D | 02-Dec-2021 | 48.3 KiB | 1,660 | 419 | |
key.go | H A D | 02-Dec-2021 | 23.7 KiB | 829 | 586 | |
key_test.go | H A D | 02-Dec-2021 | 19.1 KiB | 614 | 486 | |
parser.go | H A D | 02-Dec-2021 | 12.6 KiB | 514 | 401 | |
parser_test.go | H A D | 02-Dec-2021 | 1.9 KiB | 78 | 49 | |
section.go | H A D | 02-Dec-2021 | 5.9 KiB | 257 | 190 | |
section_test.go | H A D | 02-Dec-2021 | 8.1 KiB | 316 | 249 | |
struct.go | H A D | 02-Dec-2021 | 20.7 KiB | 748 | 606 | |
struct_test.go | H A D | 02-Dec-2021 | 22.9 KiB | 922 | 770 |
README.md
1# INI 2 3[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/go-ini/ini/Go?logo=github&style=for-the-badge)](https://github.com/go-ini/ini/actions?query=workflow%3AGo) 4[![codecov](https://img.shields.io/codecov/c/github/go-ini/ini/master?logo=codecov&style=for-the-badge)](https://codecov.io/gh/go-ini/ini) 5[![GoDoc](https://img.shields.io/badge/GoDoc-Reference-blue?style=for-the-badge&logo=go)](https://pkg.go.dev/github.com/go-ini/ini?tab=doc) 6[![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) 7 8![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) 9 10Package ini provides INI file read and write functionality in Go. 11 12## Features 13 14- Load from multiple data sources(file, `[]byte`, `io.Reader` and `io.ReadCloser`) with overwrites. 15- Read with recursion values. 16- Read with parent-child sections. 17- Read with auto-increment key names. 18- Read with multiple-line values. 19- Read with tons of helper methods. 20- Read and convert values to Go types. 21- Read and **WRITE** comments of sections and keys. 22- Manipulate sections, keys and comments with ease. 23- Keep sections and keys in order as you parse and save. 24 25## Installation 26 27The minimum requirement of Go is **1.12**. 28 29```sh 30$ go get gopkg.in/ini.v1 31``` 32 33Please add `-u` flag to update in the future. 34 35## Getting Help 36 37- [Getting Started](https://ini.unknwon.io/docs/intro/getting_started) 38- [API Documentation](https://gowalker.org/gopkg.in/ini.v1) 39- 中国大陆镜像:https://ini.unknwon.cn 40 41## License 42 43This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. 44