slice

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 ...SliceOpt[netip.Addr]) value.EmptyConstructor

func AddrPort added in v0.0.18

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

func Bool

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

func Duration

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

func Int

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

func New

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

func Path

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

func Rune

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

func String

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

Types

type SliceOpt

type SliceOpt[T comparable] func(*sliceValue[T])

func Choices

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

func Default

func Default[T comparable](def []T) SliceOpt[T]

Jump to

Keyboard shortcuts

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