flags

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Now = iso8601.Now

Functions

This section is empty.

Types

type Base64FileValue added in v0.0.11

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

Base64FileValue adapts File.File for use as a flag.

func NewBase64FileValue added in v0.0.11

func NewBase64FileValue() *Base64FileValue

func (*Base64FileValue) Set added in v0.0.11

func (v *Base64FileValue) Set(s string) error

Set sets the value based on a file content.

func (*Base64FileValue) String added in v0.0.11

func (v *Base64FileValue) String() string

func (*Base64FileValue) Type added in v0.0.11

func (v *Base64FileValue) Type() string

Type name for File.File flags.

func (*Base64FileValue) Value added in v0.0.11

func (v *Base64FileValue) Value() (string, bool)

type FileValue added in v0.0.11

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

FileValue adapts File.File for use as a flag.

func NewFileValue added in v0.0.11

func NewFileValue() *FileValue

func (*FileValue) Set added in v0.0.11

func (v *FileValue) Set(s string) error

Set sets the value based on a file content.

func (*FileValue) String added in v0.0.11

func (v *FileValue) String() string

func (*FileValue) Type added in v0.0.11

func (v *FileValue) Type() string

Type name for File.File flags.

func (*FileValue) Value added in v0.0.11

func (v *FileValue) Value() (string, bool)

type TimeValue

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

TimeValue adapts time.Time for use as a flag.

func NewTimeValue

func NewTimeValue() *TimeValue

func (*TimeValue) Set

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

Set time.Time value from string (rfc3339, iso8601 or duration).

func (*TimeValue) String

func (d *TimeValue) String() string

func (*TimeValue) Type

func (d *TimeValue) Type() string

Type name for time.Time flags.

func (*TimeValue) Value

func (d *TimeValue) Value() (iso8601.Time, bool)

Jump to

Keyboard shortcuts

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