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
Nick Khyl bd54b61746 types/opt: add (Value[T]).GetOr(def T) T method
Updates #12736

Signed-off-by: Nick Khyl <nickk@tailscale.com>
1 year ago
..
bool.go
bool_test.go
value.go types/opt: add (Value[T]).GetOr(def T) T method 1 year ago
value_test.go types/opt: add generic Value[T any] for optional values of any types 1 year ago