You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/types/opt
Joe Tsai 930e6f68f2
types/opt: use switch in Bool.UnmarshalJSON (#9140)
The compiler does indeed perform this optimization.

Updates #cleanup

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 year ago
..
bool.go types/opt: use switch in Bool.UnmarshalJSON (#9140) 1 year ago
bool_test.go types/opt: use switch in Bool.UnmarshalJSON (#9140) 1 year ago