flags

package
v0.4.7-0...-09e9618 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProxyValueOff      = "off"
	ProxyValueReadonly = "readonly"
	ProxyValueOn       = "on"
)

Variables

Functions

This section is empty.

Types

type IPAddressPort

type IPAddressPort struct {
	IP   string
	Port int
}

IPAddressPort implements the flag.Value interface. The argument is validated as "ip:port".

func (*IPAddressPort) Set

func (a *IPAddressPort) Set(arg string) error

func (*IPAddressPort) String

func (a *IPAddressPort) String() string

type Proxy

type Proxy string

ProxyFlag implements the flag.Value interface.

func (*Proxy) Set

func (pf *Proxy) Set(s string) error

Set verifies the argument to be a valid member of proxyFlagValues before setting the underlying flag value.

func (*Proxy) String

func (pf *Proxy) String() string

type URLsValue

type URLsValue types.URLs

func NewURLsValue

func NewURLsValue(init string) *URLsValue

func (*URLsValue) Set

func (us *URLsValue) Set(s string) error

Set parses a command line set of URLs formatted like: http://127.0.0.1:7001,http://10.1.1.2:80

func (*URLsValue) String

func (us *URLsValue) String() string

Jump to

Keyboard shortcuts

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