cleanup
This commit is contained in:
parent
f1b5edfa0d
commit
ee7359a641
15
parse.go
15
parse.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user