sliceflag

package module
v0.0.0-...-d2d28a5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 5 Imported by: 7

README

wercker status

sliceflag

slice flag for flag package of go

USAGE

var (
       strs = sliceflag.String(flag.CommandLine, "str", []string{}, "str")
)

func main() {
    flag.Parse()
    log.Println(*strs)
}
$ go run main.go --str aaa --str bbb

SEEALSO

TODO

  • write document

LICENSE

  • MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(flagset *flag.FlagSet, name string, value []time.Duration, usage string) *[]time.Duration

func DurationVar

func DurationVar(flagset *flag.FlagSet, p *[]time.Duration, name string, value []time.Duration, usage string)

func Float64

func Float64(flagset *flag.FlagSet, name string, value []float64, usage string) *[]float64

func Float64Var

func Float64Var(flagset *flag.FlagSet, p *[]float64, name string, value []float64, usage string)

func Int

func Int(flagset *flag.FlagSet, name string, value []int, usage string) *[]int

func Int64

func Int64(flagset *flag.FlagSet, name string, value []int64, usage string) *[]int64

func Int64Var

func Int64Var(flagset *flag.FlagSet, p *[]int64, name string, value []int64, usage string)

func IntVar

func IntVar(flagset *flag.FlagSet, p *[]int, name string, value []int, usage string)

func String

func String(flagset *flag.FlagSet, name string, value []string, usage string) *[]string

func StringVar

func StringVar(flagset *flag.FlagSet, p *[]string, name string, value []string, usage string)

func Uint

func Uint(flagset *flag.FlagSet, name string, value []uint, usage string) *[]uint

func Uint64

func Uint64(flagset *flag.FlagSet, name string, value []uint64, usage string) *[]uint64

func Uint64Var

func Uint64Var(flagset *flag.FlagSet, p *[]uint64, name string, value []uint64, usage string)

func UintVar

func UintVar(flagset *flag.FlagSet, p *[]uint, name string, value []uint, usage string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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