https://github.com/c0de4un/ini
INI Loader written in Go
https://github.com/c0de4un/ini
go golang ini ini-parser ini-reader
Last synced: 7 days ago
JSON representation
INI Loader written in Go
- Host: GitHub
- URL: https://github.com/c0de4un/ini
- Owner: c0de4un
- License: mit
- Created: 2022-02-09T23:46:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T13:01:41.000Z (over 4 years ago)
- Last Synced: 2025-02-26T21:24:22.786Z (over 1 year ago)
- Topics: go, golang, ini, ini-parser, ini-reader
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ini
INI Loader written in Go
Single threaded & simple
# Examples
* Read all params
```go
func (app MyApp) onParam(name string, value string) bool {
app.config.setParam(name, value)
return true
}
func (app MyApp) Load() {
reader := ini.NewReader()
reader.ReadAll(app.dbConfig, app)
}
```
# Requirements
* Go 1.17
# Tests
```bash
$go test
```