Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Or ¶ added in v0.1.4
func Or[T comparable](value T, orValue T) T
Or returns the orValue when value is the zero value for a given type
func SigFigDur ¶ added in v0.1.2
SigFigDur renders duration to a fixed number of significant figures, independent of the unit of measure.
func Unique ¶
func Unique[T comparable](values ...T) []T
Unique returns a slice from the original containing only unique elements
Types ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T comparable](values ...T) *Set[T]
NewSet creates a new set, initialized with values
func (*Set[T]) Items ¶ added in v0.1.1
func (s *Set[T]) Items() []T
Items returns a slice of the items in the set
Click to show internal directories.
Click to hide internal directories.