Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Primitive ¶
type Primitive[T constraints.Ordered] struct { Value T }
Primitive is a type that can be used to represent a primitive type.
func Of ¶
func Of[T constraints.Ordered](value T) Primitive[T]
Of returns a new primitive type with the given value.
func OfList ¶
func OfList[T constraints.Ordered](value ...T) []Primitive[T]
OfList returns a new primitive type with the given values.
Click to show internal directories.
Click to hide internal directories.