flag

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package flag defines a few custom flags since stdlib/flags didn't.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringSlice

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

StringSlice defines a stringSlice flag with specified name, default value, and usage string. The return value is the address of a slice variable that stores the value of the flag.

func StringSliceFS

func StringSliceFS(f *flag.FlagSet, name string, value []string, usage string) *[]string

StringSliceFS defines a stringSlice flag with specified name, default value, and usage string. The return value is the address of a slice that stores the value of the flag.

func StringSliceVar

func StringSliceVar(p *[]string, name string, value []string, usage string)

StringSliceVar defines a stringSlice flag with specified name, default value, and usage string. The argument p points to a string variable in which to store the value of the flag.

func StringSliceVarFS

func StringSliceVarFS(f *flag.FlagSet, p *[]string, name string, value []string, usage string)

StringSliceVar defines a stringSlice flag with specified name, default value, and usage string. The argument p points to a string variable in which to store the value of the flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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