rflag

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescriptionFilterSetFlagVar

func DescriptionFilterSetFlagVar(f *pflag.FlagSet, s *types.DescriptionFilterSet, name string, usage string)

DescriptionFilterSetFlagVar defines a DescriptionFilterSet flag with specified name, shorthand and usage string. The argument s points to a DescriptionFilterSet variable in which to store the compiled values of the multiple flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name).

func DescriptionFilterSetFlagVarP

func DescriptionFilterSetFlagVarP(f *pflag.FlagSet, s *types.DescriptionFilterSet, name, shorthand string, usage string)

DescriptionFilterSetFlagVarP defines a DescriptionFilterSet flag with specified name, and usage string. The argument s points to a DescriptionFilterSet variable in which to store the compiled values of the multiple flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name or shorthand).

func NetAddressArrayFlagVar added in v0.3.0

func NetAddressArrayFlagVar(f *pflag.FlagSet, s *[]modules.NetAddress, name string, usage string)

NetAddressArrayFlagVar defines a []modules.NetAddress flag with specified name and usage string. The argument s points to a []modules.NetAddress variable in which to store the validated values of the flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name).

func NetAddressArrayFlagVarP added in v0.3.0

func NetAddressArrayFlagVarP(f *pflag.FlagSet, s *[]modules.NetAddress, name, shorthand string, usage string)

NetAddressArrayFlagVarP defines a []modules.NetAddress flag with specified name, shorthand and usage string. The argument s points to a []modules.NetAddress variable in which to store the validated values of the flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name or shorthand).

Types

This section is empty.

Jump to

Keyboard shortcuts

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