import "cloud.google.com/go/internal/optional"
Package optional provides versions of primitive types that can be nil. These are useful in methods that update some of an API object's fields.
ToBool returns its argument as a bool. It panics if its argument is nil or not a bool.
ToDuration returns its argument as a time.Duration. It panics if its argument is nil or not a time.Duration.
ToFloat64 returns its argument as a float64. It panics if its argument is nil or not a float64.
ToInt returns its argument as an int. It panics if its argument is nil or not an int.
ToString returns its argument as a string. It panics if its argument is nil or not a string.
ToUint returns its argument as a uint. It panics if its argument is nil or not a uint.
type Bool interface{}
Bool is either a bool or nil.
type Duration interface{}
Duration is either a time.Duration or nil.
type Float64 interface{}
Float64 is either a float64 or nil.
type Int interface{}
Int is either an int or nil.
type String interface{}
String is either a string or nil.
type Uint interface{}
Uint is either a uint or nil.
Package optional imports 3 packages (graph) and is imported by 5 packages. Updated 2020-10-03. Refresh now. Tools for package owners.