flagx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 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 Flag

type Flag[U _Uint] struct {
	// contains filtered or unexported fields
}

func (Flag[U]) Is

func (f Flag[U]) Is(u U) bool

func (*Flag[U]) Trim

func (f *Flag[U]) Trim(u U) U

func (Flag[U]) Value

func (f Flag[U]) Value() U

func (*Flag[U]) With

func (f *Flag[U]) With(u U) U

type Flagger

type Flagger[U _Uint] interface {
	Value() U
	Is(U) bool
	With(U) U
	Trim(U) U
}

func NewFlag

func NewFlag[U _Uint]() Flagger[U]

Jump to

Keyboard shortcuts

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