This commit is contained in:
Gokcehan 2017-11-04 18:58:48 +03:00
parent f1b5edfa0d
commit ee7359a641

View File

@ -118,13 +118,18 @@ type listExpr struct {
} }
func (e *listExpr) String() string { func (e *listExpr) String() string {
buf := []byte{':', '{', '{', ' '} var buf bytes.Buffer
buf.WriteString(":{{ ")
for _, expr := range e.exprs { for _, expr := range e.exprs {
buf = append(buf, expr.String()...) buf.WriteString(expr.String())
buf = append(buf, ';', ' ') buf.WriteString("; ")
} }
buf = append(buf, '}', '}')
return string(buf) buf.WriteString("}}")
return buf.String()
} }
type parser struct { type parser struct {