types

package
v0.0.0-...-db5d938 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

hook

func NewOption

func NewOption(flag string, nargs int, info []string) Option

option factory

type Set

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

hook

func NewSet

func NewSet[T comparable](values ...T) Set[T]

set factory

func (Set) Add

func (s Set) Add(values ...T)

add to set

func (Set) Contains

func (s Set) Contains(value T) bool

contains in set

func (Set) Remove

func (s Set) Remove(values ...T)

remove from set

Jump to

Keyboard shortcuts

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