cmd/cue: `go get` Go fields with the json omitempty tag as optional
"omitzero" was added in Go 1.24 as an improvement over "omitempty",
which works in a more intuitive way with structs and arrays,
and supports calling an IsZero method for custom implementations
such as time.Time.
Fixes #3869.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I9b4c58544a86cf961434d581012aafd0fd91a2c6
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1213251
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>