util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardNReader

func DiscardNReader(in io.Reader, n int) io.Reader

func DiscardNWriter

func DiscardNWriter(out io.Writer, n int) io.Writer

func WrappedErrOrNil

func WrappedErrOrNil(err error, format string, args ...interface{}) error

Types

type EnumVar

type EnumVar struct {
	Allowed []string
	// contains filtered or unexported fields
}

func NewEnumVar

func NewEnumVar(allowed []string, variable *string) *EnumVar

NewEnumVar give a list of allowed flag parameters

func (*EnumVar) Default

func (a *EnumVar) Default(d string) *EnumVar

func (*EnumVar) Set

func (a *EnumVar) Set(p string) error

func (EnumVar) String

func (a EnumVar) String() string

func (*EnumVar) Type

func (a *EnumVar) Type() string

Jump to

Keyboard shortcuts

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