flagext

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Time

func Time(f *pflag.FlagSet, name string, value time.Time, usage string) *time.Time

Time defines an time.Time flag with specified name, default value, and usage string. The return value is the address of an time.Time variable that stores the value of the flag.

func TimeP

func TimeP(f *pflag.FlagSet, name, shorthand string, value time.Time, usage string) *time.Time

TimeP is like Time, but accepts a shorthand letter that can be used after a single dash.

func TimeVar

func TimeVar(f *pflag.FlagSet, p *time.Time, name string, value time.Time, usage string)

TimeVar defines an time.Time flag with specified name, default value, and usage string. The argument p points to an time.Time variable in which to store the value of the flag.

func TimeVarP

func TimeVarP(f *pflag.FlagSet, p *time.Time, name, shorthand string, value time.Time, usage string)

TimeVarP is like TimeVar, but accepts a shorthand letter that can be used after a single dash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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