Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

flags

v1.51.4
github.com/lfch/grpc/benchmark/flags

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

5 matches

Top ↑

Package flags provide convenience types and routines to accept specific types of flag values on the command line.

Functions

DurationSlice

func DurationSlice(name string, defaultVal []time.Duration, usage string) *[]time.Duration

DurationSlice returns a flag representing a slice of time.Duration objects.

IntSlice

func IntSlice(name string, defaultVal []int, usage string) *[]int

IntSlice returns a flag representing a slice of ints.

StringSlice

func StringSlice(name string, defaultVal []string, usage string) *[]string

StringSlice returns a flag representing a slice of strings.

StringWithAllowedValues

func StringWithAllowedValues(name, defaultVal, usage string, allowed []string) *string

StringWithAllowedValues returns a flag variable of type stringFlagWithAllowedValues configured with the provided parameters. 'allowed` is the set of values that this flag can be set to.

Dependency graph