[go] encoding/json/jsontext: clarify safety of AvailableBuffer

2 views
Skip to first unread message

Michael Pratt (Gerrit)

unread,
Aug 7, 2026, 1:01:30 PM (3 days ago) Aug 7
to Michael Pratt, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Damien Neil, Jonathan Amsterdam, Joseph Tsai, golang-co...@googlegroups.com

Michael Pratt submitted the change

Unreviewed changes

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
encoding/json/jsontext: clarify safety of AvailableBuffer

The current wording makes it sound like the buffer itself is unsafe, but
this is just trying to warn that manually constructing a Value is
error-prone.

For #71497.
Change-Id: I12ab3ea4e858860f8a241c514a883d376a6a6964
Reviewed-by: Jonathan Amsterdam <j...@google.com>
Reviewed-by: Damien Neil <dn...@google.com>
Files:
  • M src/encoding/json/jsontext/encode.go
Change size: XS
Delta: 1 file changed, 3 insertions(+), 3 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I12ab3ea4e858860f8a241c514a883d376a6a6964
Gerrit-Change-Number: 811780
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages