dict

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr

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

func AddrPort

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

func Bool

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

func Duration

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

func Int

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

func New

func New[T comparable](inner contained.TypeInfo[T], opts ...DictOpt[T]) value.EmptyConstructor

func Path

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

func Rune

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

func String

func String(opts ...DictOpt[string]) value.EmptyConstructor

Types

type DictOpt

type DictOpt[T comparable] func(*dictValue[T])

func Choices

func Choices[T comparable](choices ...T) DictOpt[T]

func Default

func Default[T comparable](def map[string]T) DictOpt[T]

Jump to

Keyboard shortcuts

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