summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.go b/config.go
index e0a135a..949d426 100644
--- a/config.go
+++ b/config.go
@@ -73,6 +73,11 @@ func (c *Config) Read(r io.Reader) error {
s := bufio.NewScanner(r)
for s.Scan() {
+ if strings.HasPrefix(strings.TrimSpace(s.Text()), "#") {
+ // Comment, ignore.
+ continue
+ }
+
fs := strings.Fields(s.Text())
switch len(fs) {
case 0: