Explorar o código

config: Comments in ini file traditionally start with ';' (#79)

Bernhard Froehlich %!s(int64=3) %!d(string=hai) anos
pai
achega
e5f27e02e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      config.go

+ 1 - 1
config.go

@@ -236,7 +236,7 @@ func IniParser(r io.Reader, set func(name, value string) error) error {
 			continue // skip empties
 		}
 
-		if line[0] == '#' {
+		if line[0] == '#' || line[0] == ';' {
 			continue // skip comments
 		}