mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 23:36:34 +09:00
As of Go 1.27, encoding/json/v2 and encoding/json/jsontext are in the standard library, and github.com/go-json-experiment/json and its jsontext package are just aliases for them. Make cmd/jsonimports rewrite go-json-experiment imports to the standard library instead of the other way around, keeping the jsonv1 and jsonv2 import names, and leave generated files alone. Make cmd/viewer generate standard library imports, and update everything that imported go-json-experiment, so no binary links it anymore. Updates #22811 Change-Id: I4b725434dca9703e6ca0ad30ce94db03919a343f Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>