From c81a1fb87615ff27d3ee36e723cb8f915ed9bfbf Mon Sep 17 00:00:00 2001 From: kayomn Date: Tue, 20 Dec 2022 21:59:23 +0000 Subject: [PATCH] Update API example in readme --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {