optflags

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptBool

func OptBool(f *pflag.FlagSet, value **bool, name, shorthand string, usage string)

func OptDuration

func OptDuration(f *pflag.FlagSet, value **time.Duration, name, shorthand string, usage string)

func OptFloat64

func OptFloat64(f *pflag.FlagSet, value **float64, name, shorthand string, defValue float64, usage string)

func OptIntSlice

func OptIntSlice(f *pflag.FlagSet, value **[]int, name, shorthand string, usage string)

func OptSize

func OptSize(f *pflag.FlagSet, value **uint64, name, shorthand string, usage string)

func OptString

func OptString(f *pflag.FlagSet, value **string, name, shorthand string, usage string)

func OptStringSlice

func OptStringSlice(f *pflag.FlagSet, value **[]string, name, shorthand string, usage string)

func OptUint64

func OptUint64(f *pflag.FlagSet, value **uint64, name, shorthand string, usage string)

func OptVar

func OptVar[T any, PT interface {
	*T
	pflag.Value
}](f *pflag.FlagSet, value **T, name, shorthand string, usage string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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