|
|
|
@ -160,18 +160,6 @@ func NewConfigFile() *ConfigFile {
@@ -160,18 +160,6 @@ func NewConfigFile() *ConfigFile {
|
|
|
|
|
return c |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func stripComments(l string) string { |
|
|
|
|
// comments are preceded by space or TAB
|
|
|
|
|
for _, c := range []string{" ;", "\t;", " #", "\t#"} { |
|
|
|
|
if i := strings.Index(l, c); i != -1 { |
|
|
|
|
l = l[0:i] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return l |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func firstIndex(s string, delim []byte) int { |
|
|
|
|
for i := 0; i < len(s); i++ { |
|
|
|
|
for j := 0; j < len(delim); j++ { |
|
|
|
|