tailscale/types/opt
Nick Khyl 2a2228f97b util/syspolicy/setting: make setting.RawItem JSON-marshallable
We add setting.RawValue, a new type that facilitates unmarshalling JSON numbers and arrays
as uint64 and []string (instead of float64 and []any) for policy setting values.
We then use it to make setting.RawItem JSON-marshallable and update the tests.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-10-30 12:50:29 -05:00
..
bool_test.go types/opt: add BoolFlag for setting Bool value as a flag 2024-08-26 11:32:35 -07:00
bool.go types/opt: add BoolFlag for setting Bool value as a flag 2024-08-26 11:32:35 -07:00
value_test.go types/opt: add generic Value[T any] for optional values of any types 2024-07-08 17:00:43 -05:00
value.go util/syspolicy/setting: make setting.RawItem JSON-marshallable 2024-10-30 12:50:29 -05:00