golang/doc/next/6-stdlib/99-minor/encoding/62384.md

346 B

Two new interfaces, [TextAppender] and [BinaryAppender], have been introduced to append the textual or binary representation of an object to a byte slice. These interfaces provide the same functionality as [TextMarshaler] and [BinaryMarshaler], but instead of allocating a new slice each time, they append the data directly to an existing slice.