grpc: Index | Files

package flags

import ""

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


Package Files


func DurationSlice Uses

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

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

func IntSlice Uses

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

IntSlice returns a flag representing a slice of ints.

func StringWithAllowedValues Uses

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.

Package flags imports 6 packages (graph) and is imported by 3 packages. Updated 2019-05-21. Refresh now. Tools for package owners.