mirror of https://go.googlesource.com/go
346 B
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.