Back to

Package xflag

Latest Go to latest

The latest major version is .

Published: May 27, 2020 | License: GPL3 | Module:


Package xflag provides addons to standard package flag.


type Count

type Count int

Count is a flag.Value that is like a flag.Bool and a flag.Int. If used as -name, it increments the Count, but -name=x sets the Count. Used for verbose flag -v.

func (*Count) IsBoolFlag

func (c *Count) IsBoolFlag() bool

func (*Count) Set

func (c *Count) Set(s string) error

func (*Count) String

func (c *Count) String() string

Package Files

  • doc.go
  • xflag.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier