flags

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeLayout     = time.RFC3339
	TimeLayoutName = "RFC3339"
)

Variables

This section is empty.

Functions

func RegisterTimeVar added in v0.19.0

func RegisterTimeVar(cmd *cobra.Command, storeIn *time.Time, name, usage string)

Types

type FloatArray added in v0.19.0

type FloatArray []float64

func (*FloatArray) Set added in v0.19.0

func (a *FloatArray) Set(s string) error

func (FloatArray) String added in v0.19.0

func (a FloatArray) String() string

func (FloatArray) Type added in v0.19.0

func (a FloatArray) Type() string

type TimeValue

type TimeValue struct {
	// contains filtered or unexported fields
}

TimeValue is a custom pflag.Value implementation for time.Time that provides a better formatted error message using time.RFC3339 layout.

func (*TimeValue) Set

func (t *TimeValue) Set(s string) error

func (*TimeValue) String

func (t *TimeValue) String() string

func (*TimeValue) Type

func (t *TimeValue) Type() string

Jump to

Keyboard shortcuts

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