customflag

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package customflag provides additional flag.Value implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiString

func MultiString(name string, usage string) *[]string

MultiString defines a []string flag with specified name and usage string. The returned value is the address of a []string variable that stores the value of the flag.

The default value is a nil slice. Each occurrence of the flag in the command line appends the value to the slice.

func MultiStringVar

func MultiStringVar(p *[]string, name string, usage string)

MultiStringVar defines a []string flag with specified name and usage string. The argument p points to a []string variable in which to store the value of the flag.

The default value is a nil slice. Each occurrence of the flag in the command line appends the value to the slice.

func NewMultiStringValue

func NewMultiStringValue(p *[]string) flag.Value

NewMultiStringValue returns a flag.Value for a []string flag. The argument p points to a []string variable in which to store the value of the flag.

The default value is a nil slice. Each occurrence of the flag in the command line appends the value to the slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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