https://github.com/himidori/inifile-go
https://github.com/himidori/inifile-go
golang ini
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/himidori/inifile-go
- Owner: himidori
- License: gpl-3.0
- Created: 2018-07-01T00:07:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T00:53:00.000Z (about 7 years ago)
- Last Synced: 2025-02-03T09:46:55.575Z (5 months ago)
- Topics: golang, ini
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# inifile-go
# usage
## creating inifile object
```go
ini, err := inifile.NewIniFile("xxx")
```## adding new section
```go
err = ini.AddSection("xxx")
```## adding new key. section will be created automatically if it doesn't exist
```go
err = ini.WriteKey("section", "keyname", "keyvalue")
```## reading key
```go
val, err := ini.ReadKey("section", "keyname")
```## deleting key
```go
err = ini.DeleteKey("section", "keyname")
```