String returns the string form of a statement rather than the underlying slice of tokens
()
| 24 | // String returns the string form of a statement rather than the |
| 25 | // underlying slice of tokens |
| 26 | func (s statement) String() string { |
| 27 | out := make([]string, 0, len(s)+2) |
| 28 | for _, t := range s { |
| 29 | out = append(out, t.format()) |
| 30 | } |
| 31 | return strings.Join(out, "") |
| 32 | } |
| 33 | |
| 34 | // colorString returns the string form of a statement with ASCII color codes |
| 35 | func (s statement) colorString() string { |