xxFlagTypes

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagStringSlice

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

func NewFlagStringSlice

func NewFlagStringSlice(splitchar *string) *FlagStringSlice

args can be nil or ""

func (*FlagStringSlice) GetV

func (receiver *FlagStringSlice) GetV() []string

func (*FlagStringSlice) Set

func (receiver *FlagStringSlice) Set(args string) error

func (*FlagStringSlice) String

func (f *FlagStringSlice) String() string

type FlagTime

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

使用 d:天 h:小时 m:分钟 s:秒

func NewFlagTime

func NewFlagTime(deftime *time.Time) *FlagTime

func NewFlagTimeWithAfterNowDuration

func NewFlagTimeWithAfterNowDuration(duration time.Duration) *FlagTime

func NewFlagTimeWithNowTime

func NewFlagTimeWithNowTime() *FlagTime

if deftime is nil, the default time is time.Now()

func (*FlagTime) GetV

func (receiver *FlagTime) GetV() time.Time

func (*FlagTime) Set

func (receiver *FlagTime) Set(args string) error

func (*FlagTime) String

func (f *FlagTime) String() string

type FlagTimeDuration

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

使用 d:天 h:小时 m:分钟 s:秒

func NewFlagTimeDuration

func NewFlagTimeDuration(defval time.Duration) *FlagTimeDuration

func (*FlagTimeDuration) GetV

func (receiver *FlagTimeDuration) GetV() time.Duration

func (*FlagTimeDuration) Set

func (receiver *FlagTimeDuration) Set(args string) error

func (*FlagTimeDuration) String

func (f *FlagTimeDuration) String() string

Jump to

Keyboard shortcuts

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