Update API example in readme
This commit is contained in:
parent
ca863af9c4
commit
c81a1fb876
|
@ -3,9 +3,9 @@
|
|||
Unsatisfied with the INI parsing tools provided by third-parties in the Golang ecosystem, INI Gusher aims to solve parsing and saving of INI files as simply as possible.
|
||||
|
||||
```go
|
||||
var parser = ini.NewParser(modInfoFile)
|
||||
var parser = ini.NewParser(reader)
|
||||
|
||||
for entry, parsed := parser.Parse(); parsed; entry, parsed = parser.Parse() {
|
||||
for entry := parser.Parse(); parser.IsEnd(); entry = parser.Parse() {
|
||||
var myValue = myValueMap[entry.Section]
|
||||
|
||||
switch entry.Key {
|
||||
|
|
Loading…
Reference in New Issue