Back to godoc.org

Package xflag

v0.0.0-...-3cf7f3f
Latest Go to latest

The latest major version is .

Published: May 27, 2020 | License: GPL3 | Module: lab.nexedi.com/kirr/go123

Overview

Package xflag provides addons to standard package flag.

Index

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