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.
Click to show internal directories.
Click to hide internal directories.