Documentation ¶
Index ¶
- func Bool(opts ...ScalarOpt[bool]) value.EmptyConstructor
- func Duration(opts ...ScalarOpt[time.Duration]) value.EmptyConstructor
- func Int(opts ...ScalarOpt[int]) value.EmptyConstructor
- func New[T comparable](hc contained.ContainedTypeInfo[T], opts ...ScalarOpt[T]) value.EmptyConstructor
- func Path(opts ...ScalarOpt[string]) value.EmptyConstructor
- func Rune(opts ...ScalarOpt[rune]) value.EmptyConstructor
- func String(opts ...ScalarOpt[string]) value.EmptyConstructor
- type ScalarOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T comparable](hc contained.ContainedTypeInfo[T], opts ...ScalarOpt[T]) value.EmptyConstructor
Types ¶
type ScalarOpt ¶
type ScalarOpt[T comparable] func(*scalarValue[T])
func Choices ¶
func Choices[T comparable](choices ...T) ScalarOpt[T]
func Default ¶
func Default[T comparable](def T) ScalarOpt[T]
Click to show internal directories.
Click to hide internal directories.