flag

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Overview

Package flag provides some general-purpose types which satisfy the flag.Value interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExplicitFlag

type ExplicitFlag struct {
	IsSet *bool
	Value *string
}

ExplicitFlag is a string flag that tracks whether it was set.

func (*ExplicitFlag) Set

func (f *ExplicitFlag) Set(value string) error

func (*ExplicitFlag) String

func (f *ExplicitFlag) String() string

type MultiFlag

type MultiFlag struct {
	Values *[]string
}

MultiFlag collects repeated string flags into a slice.

func (*MultiFlag) Set

func (m *MultiFlag) Set(v string) error

func (*MultiFlag) String

func (m *MultiFlag) String() string

Jump to

Keyboard shortcuts

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