diff --git a/readme.md b/readme.md index b5e2024..69e1840 100644 --- a/readme.md +++ b/readme.md @@ -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 {