Last active
August 29, 2015 14:01
-
-
Save trygveaa/55a172404598813297bf to your computer and use it in GitHub Desktop.
A simple config parser for go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Moved to https://github.com/itkinside/itkconfig |
Thanks, and agreed. I have applied your suggestions.
"Nr" is just an example field of type int.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 65-68, is perhaps better written like below in order to support setting booleans with 1 and 0's as well.
I also think it is better to use
bufio
and theos
package in order to read lines. So something like:And lastly, what is "Nr" meant to represent in the config?