dummy

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func TestFlagSet

func TestFlagSet() Cli

TestFlagSet returns a flag set for unit test purpose.

func (Cli) Bool

func (u Cli) Bool(key string) bool

func (Cli) Context added in v1.18.0

func (u Cli) Context() context.Context

func (Cli) Duration

func (u Cli) Duration(key string) time.Duration

func (Cli) GlobalBool

func (u Cli) GlobalBool(key string) bool

func (Cli) GlobalInt

func (u Cli) GlobalInt(key string) int

func (Cli) GlobalInt64

func (u Cli) GlobalInt64(key string) int64

func (Cli) GlobalInt64Slice

func (u Cli) GlobalInt64Slice(key string) []int64

func (Cli) GlobalIntSlice

func (u Cli) GlobalIntSlice(key string) []int

func (Cli) GlobalString

func (u Cli) GlobalString(key string) string

func (Cli) GlobalStringSlice

func (u Cli) GlobalStringSlice(key string) []string

func (Cli) Int

func (u Cli) Int(key string) int

func (Cli) Int64

func (u Cli) Int64(key string) int64

func (Cli) Int64Slice

func (u Cli) Int64Slice(key string) []int64

func (Cli) IntSlice

func (u Cli) IntSlice(key string) []int

func (Cli) IsSet

func (u Cli) IsSet(key string) bool

func (Cli) Set

func (u Cli) Set(Key string, value interface{})

Set allows to set any kinds of value with given key. The type of set value should be matched with the returned type of GetXXX function.

func (Cli) Stderr added in v1.20.0

func (u Cli) Stderr() io.Writer

func (Cli) Stdout added in v1.20.0

func (u Cli) Stdout() io.Writer

func (Cli) String

func (u Cli) String(key string) string

func (Cli) StringSlice

func (u Cli) StringSlice(key string) []string

Jump to

Keyboard shortcuts

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