AppendText appends the textual representation of itself to the end of b (allocating a larger slice if necessary) and returns the updated slice. Implementations must not retain b, nor mutate any bytes within b[:len(b)].
(b []byte)
| 141 | // |
| 142 | // Implementations must not retain b, nor mutate any bytes within b[:len(b)]. |
| 143 | func (x *Color) AppendText(b []byte) ([]byte, error) { |
| 144 | return append(b, x.String()...), nil |
| 145 | } |