[go] encoding/json/v2: dual support errors.ErrUnsupported and SkipFunc

0 views
Skip to first unread message

Joseph Tsai (Gerrit)

unread,
Feb 13, 2026, 2:58:42 PMFeb 13
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Junyang Shao, Damien Neil, Johan Brandhorst-Satzkorn, Go LUCI, Michael Pratt, Daniel Martí, golang-co...@googlegroups.com

Joseph Tsai submitted the change

Change information

Commit message:
encoding/json/v2: dual support errors.ErrUnsupported and SkipFunc

This change supports both errors.ErrUnsupported and SkipFunc.
In a future change, we will remove SkipFunc entirely in favor
of using errors.ErrUnsupported, which exists for a similar pupose.

Updates #74324
Change-Id: I5f1ada8e3914513d7d23c504f5965ca8dd95ad18
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Junyang Shao <shaoj...@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.br...@gmail.com>
Files:
  • M src/encoding/json/v2/arshal.go
  • M src/encoding/json/v2/arshal_funcs.go
  • M src/encoding/json/v2/arshal_methods.go
  • M src/encoding/json/v2/arshal_test.go
  • M src/encoding/json/v2/errors.go
  • M src/encoding/json/v2/example_test.go
Change size: M
Delta: 6 files changed, 96 insertions(+), 93 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Johan Brandhorst-Satzkorn, +1 by Junyang Shao, +2 by Damien Neil
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
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: I5f1ada8e3914513d7d23c504f5965ca8dd95ad18
Gerrit-Change-Number: 745040
Gerrit-PatchSet: 3
Gerrit-Owner: Joseph Tsai <joe...@digital-static.net>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Daniel Martí <mv...@mvdan.cc>
Gerrit-Reviewer: Johan Brandhorst-Satzkorn <johan.br...@gmail.com>
Gerrit-Reviewer: Joseph Tsai <joe...@digital-static.net>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages