flags

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes added in v0.6.2

type Bytes []byte

func (*Bytes) Set added in v0.6.2

func (f *Bytes) Set(s string) error

func (Bytes) String added in v0.6.2

func (f Bytes) String() string

func (Bytes) Type added in v0.6.2

func (f Bytes) Type() string

type Enum

type Enum[T any] struct {
	V *T
	F func(string) (T, bool)
}

func NewEnum

func NewEnum[T any](v *T, f func(string) (T, bool)) *Enum[T]

func (*Enum[T]) Set

func (f *Enum[T]) Set(s string) error

func (*Enum[T]) String

func (f *Enum[T]) String() string

func (*Enum[T]) Type

func (f *Enum[T]) Type() string

type Time added in v0.6.2

type Time struct {
	Value *time.Time
}

func (*Time) Set added in v0.6.2

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

func (*Time) String added in v0.6.2

func (t *Time) String() string

func (*Time) Type added in v0.6.2

func (t *Time) Type() string

type Url

type Url struct {
	V **url.URL
}

func (Url) Set

func (f Url) Set(s string) error

func (Url) String

func (f Url) String() string

func (Url) Type

func (f Url) Type() string

type UrlSlice added in v0.6.0

type UrlSlice []*url.URL

func (*UrlSlice) Set added in v0.6.0

func (f *UrlSlice) Set(s string) error

func (*UrlSlice) String added in v0.6.0

func (f *UrlSlice) String() string

func (*UrlSlice) Type added in v0.6.0

func (f *UrlSlice) Type() string

Jump to

Keyboard shortcuts

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