Documentation ¶
Index ¶
- func Contains(s []string, e string) bool
- func HumanizeDuration(d time.Duration) string
- func ParseChainHash(hash string) (*chainhash.Hash, error)
- func ParseRFC3339Timestamp(timestamp string) (*int64, error)
- func ParseSatoshi(value float64) btcutil.Amount
- func ParseUnixTimestamp(timestamp int64) string
- func ToStringPointer(value string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanizeDuration ¶
HumanizeDuration converts a time.Duration into something readable. Taken from: https://gist.github.com/harshavardhana/327e0577c4fed9211f65
Example:
HumanizeDuration(time.Duration())
func ParseRFC3339Timestamp ¶
ParseRFC3339Timestamp converts a timestamp in RFC3339 format to a UNIX timestamp in seconds.
It is the reverse of ParseUnixTimestamp
func ParseSatoshi ¶
ParseSatoshi converts a float64 bitcoin value to satoshis. Named after ParseInt function.
func ParseUnixTimestamp ¶
ParseUnixTimestamp converts a UNIX timestamp in seconds, and returns a string representing of the timestamp in RFC3339 format.
func ToStringPointer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.