option

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindBool

func BindBool(v *bool) flag.HookFunc

func BindFloat64 added in v2.18.0

func BindFloat64(v *float64) flag.HookFunc

func BindInt64

func BindInt64(v *int64) flag.HookFunc

func BindString

func BindString(v *string) flag.HookFunc

func Default

func Default(name string, def string, desc string, fn ...flag.HookFunc) *flag.Flag

func Defaults

func Defaults(name string, def []string, desc string, fn ...flag.HookFunc) *flag.Flag

func Merge

func Merge(list []*flag.Flag, flags ...*flag.Flag) []*flag.Flag

func NoValue

func NoValue(name string, desc string, fn ...flag.HookFunc) *flag.Flag

func Option

func Option(name string, def string, desc string, fn ...flag.HookFunc) *flag.Flag

func Required

func Required(name string, desc string, fn ...flag.HookFunc) *flag.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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