scalar

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr added in v0.0.18

func Addr(opts ...ScalarOpt[netip.Addr]) value.EmptyConstructor

func AddrPort added in v0.0.18

func AddrPort(opts ...ScalarOpt[netip.AddrPort]) value.EmptyConstructor

func Bool

func Bool(opts ...ScalarOpt[bool]) value.EmptyConstructor

func Duration

func Duration(opts ...ScalarOpt[time.Duration]) value.EmptyConstructor

func Int

func Int(opts ...ScalarOpt[int]) value.EmptyConstructor

func New

func New[T comparable](hc contained.TypeInfo[T], opts ...ScalarOpt[T]) value.EmptyConstructor

func Path

func Path(opts ...ScalarOpt[string]) value.EmptyConstructor

func Rune

func Rune(opts ...ScalarOpt[rune]) value.EmptyConstructor

func String

func String(opts ...ScalarOpt[string]) 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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL