Documentation
ΒΆ
Overview ΒΆ
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.
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func ToBool ΒΆ
ToBool returns its argument as a bool. It panics if its argument is nil or not a bool.
func ToDuration ΒΆ added in v0.12.0
ToDuration returns its argument as a time.Duration. It panics if its argument is nil or not a time.Duration.
func ToFloat64 ΒΆ
ToFloat64 returns its argument as a float64. It panics if its argument is nil or not a float64.
Types ΒΆ
Click to show internal directories.
Click to hide internal directories.