google / google/uuid

Implement AppendText and AppendBinary

Open
#193 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
440
PR merge metrics
No merged PRs in 30d

Description

Starting with Go 1.24, the [`TextAppender`](https://pkg.go.dev/encoding@master#TextAppender) and the [`BinaryAppender`](https://pkg.go.dev/encoding@master#TextAppender) interface have been introduced and got implemented by the standard library. Description from https://tip.golang.org/doc/go1.24:
> These interfaces provide the same functionality as [TextMarshaler](https://tip.golang.org/pkg/encoding#TextMarshaler) and [BinaryMarshaler](https://tip.golang.org/pkg/encoding#BinaryMarshaler), but instead of allocating a new slice each time, they append the data directly to an existing slice. These interfaces are now implemented by standard library types that already implemented TextMarshaler and/or BinaryMarshaler.

it would probably nice if `uuid` supported those as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.