MCPcopy Create free account
hub / github.com/abice/go-enum / AppendText

Method AppendText

example/color_enum.go:143–145  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

141//
142// Implementations must not retain b, nor mutate any bytes within b[:len(b)].
143func (x *Color) AppendText(b []byte) ([]byte, error) {
144 return append(b, x.String()...), nil
145}

Callers 1

TestColorAppendTextFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 1

TestColorAppendTextFunction · 0.36