cli

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: MIT Imports: 2 Imported by: 20

Documentation

Index

Constants

View Source
const (
	// DateOnlyLayout allows you to define a timestamp using a date only,
	// where GMT is assumed as the timezone: DD/MM/YYYY TZN
	DateOnlyLayout = "02/01/2006 MST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LockTimeFlag

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

LockTimeFlag defines LockTime as a flag, as to give the user several ways to define the lock time, such that for example the user isn't required to define it in unix epoch time.

func (*LockTimeFlag) LockTime

func (f *LockTimeFlag) LockTime() uint64

LockTime returns the internal lock time of this LockTime flag

func (*LockTimeFlag) Set

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

Set implements pflag.Value.Set, which parses the given string either as a timestamp in DateOnlyLayout or RFC822 layout, a duration or as an uint64.

func (*LockTimeFlag) String

func (f *LockTimeFlag) String() string

String implements pflag.Value.String, printing this LockTime either as a timestamp in DateOnlyLayout or RFC822 layout, a duration or as an uint64.

func (*LockTimeFlag) Type

func (f *LockTimeFlag) Type() string

Type implements pflag.Value.Type

Jump to

Keyboard shortcuts

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