https://github.com/nonzzz/ini
A standard golang ini parser
https://github.com/nonzzz/ini
ast go ini-parser
Last synced: 11 months ago
JSON representation
A standard golang ini parser
- Host: GitHub
- URL: https://github.com/nonzzz/ini
- Owner: nonzzz
- License: mit
- Created: 2023-03-03T09:38:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T02:54:34.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T16:57:13.087Z (about 1 year ago)
- Topics: ast, go, ini-parser
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ini
A simple standard ini parser with golang.
## Install
```bash
$ go get github.com/nonzzz/ini
```
## Features
- Read by file.
- Read by string.
- Marshal to Json or Map.
- Friendly Selector
## Usage
```go
i := ini.New()
// Load File
i.LoadFile("your ini file")
// Parse
txt :=`
[s]
a = 3
[s1]
b = 4
`
ini.Parse(txt)
```
## Document
- [selector](./docs/selector.md)
## Acknowledgements
Thanks to [JetBrains](https://www.jetbrains.com/) for allocating free open-source licences for IDEs.
## Author
Kanno
## LICENSE
[MIT](LICENSE)