flag

package
v1.16.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFlags

func PrintFlags(flags *pflag.FlagSet)

PrintFlags logs the flags in the flagset

Types

type IPPortVar

type IPPortVar struct {
	Val *string
}

IPPortVar is used for validating a command line option that represents an IP and a port. It implements the pflag.Value interface

func (IPPortVar) Set

func (v IPPortVar) Set(s string) error

Set sets the flag value

func (IPPortVar) String

func (v IPPortVar) String() string

String returns the flag value

func (IPPortVar) Type

func (v IPPortVar) Type() string

Type gets the flag type

type IPVar

type IPVar struct {
	Val *string
}

IPVar is used for validating a command line option that represents an IP. It implements the pflag.Value interface

func (IPVar) Set

func (v IPVar) Set(s string) error

Set sets the flag value

func (IPVar) String

func (v IPVar) String() string

String returns the flag value

func (IPVar) Type

func (v IPVar) Type() string

Type gets the flag type

type PortRangeVar

type PortRangeVar struct {
	Val *string
}

PortRangeVar is used for validating a command line option that represents a port range. It implements the pflag.Value interface

func (PortRangeVar) Set

func (v PortRangeVar) Set(s string) error

Set sets the flag value

func (PortRangeVar) String

func (v PortRangeVar) String() string

String returns the flag value

func (PortRangeVar) Type

func (v PortRangeVar) Type() string

Type gets the flag type

Jump to

Keyboard shortcuts

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