diff --git a/maker/golang/xdb/util.go b/maker/golang/xdb/util.go index 870c2324c74574d2aaf8a1f6a6c08be42d1acc7f..63c33941c4217718e887dea99e9679e5e378bfb7 100644 --- a/maker/golang/xdb/util.go +++ b/maker/golang/xdb/util.go @@ -53,6 +53,12 @@ func IterateSegments(handle *os.File, before func(l string), cb func(seg *Segmen scanner.Split(bufio.ScanLines) for scanner.Scan() { var l = strings.TrimSpace(strings.TrimSuffix(scanner.Text(), "\n")) + + // ignore the comment line + if l[0] == '#' { + continue + } + if before != nil { before(l) }