Update API example in readme

This commit is contained in:
kayomn 2022-12-20 21:59:23 +00:00
parent ca863af9c4
commit c81a1fb876
1 changed files with 2 additions and 2 deletions

View File

@ -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 {