Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/himidori/inifile-go
https://github.com/himidori/inifile-go
golang ini
Last synced: 15 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T00:53:00.000Z (over 6 years ago)
- Last Synced: 2024-04-18T11:38:04.426Z (8 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")
```