From 4890bc4cc7bcadeef05e5842072ba568d58d97a1 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 21 Jun 2018 20:59:42 +0530 Subject: [PATCH] config_file.go: allow comments with hash prefix --- api/config_file.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/config_file.go b/api/config_file.go index 1600f78..01b99ae 100644 --- a/api/config_file.go +++ b/api/config_file.go @@ -21,6 +21,10 @@ func configFileLoad(filepath string) error { continue } + if strings.HasPrefix(line, "#") { + continue + } + i := strings.Index(line, "=") if i == -1 { continue