collections

package
v0.0.0-...-1c9a7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SetterPolicyAppend = SetterPolicy(iota)
	SetterPolicyReset
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag[
	T schnittstellen.ValueLike,
	TPtr flagPtr[T],
] interface {
	flag.Value
	SetMany(vs ...string) (err error)
	GetSet() schnittstellen.SetLike[T]
	GetMutableSet() schnittstellen.MutableSetLike[T]
}

func MakeFlagCommas

func MakeFlagCommas[
	T schnittstellen.ValueLike,
	TPtr flagPtr[T],
](p SetterPolicy,
) Flag[T, TPtr]

func MakeFlagCommasFromExisting

func MakeFlagCommasFromExisting[
	T schnittstellen.ValueLike,
	TPtr flagPtr[T],
](
	p SetterPolicy,
	existing *schnittstellen.SetLike[T],
) Flag[T, TPtr]

type SetterPolicy

type SetterPolicy int

Jump to

Keyboard shortcuts

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