Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/himidori/inifile-go


https://github.com/himidori/inifile-go

golang ini

Last synced: 15 days ago
JSON representation

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")
```