Documentation
¶
Overview ¶
Useful routines used in several other packages.
Index ¶
- func AddInt64(a, b int64) (int64, error)
- func AddUint64(a, b uint64) (uint64, error)
- func CleanTemporaryDirs(dirs []string) error
- func Dup(b []byte) []byte
- func FromBase58JSON(value []byte, size int, name string) ([]byte, error)
- func FromBase58JSONUnsized(value []byte, name string) ([]byte, error)
- func GetStatePath() (string, error)
- func MinOf(vars ...uint64) uint64
- func ParseDuration(str string) (uint64, error)
- func SetupLogger(level string) (*zap.Logger, *zap.SugaredLogger)
- func TimeTrack(start time.Time, name string)
- func ToBase58JSON(b []byte) []byte
- func TrackLongFunc(duration time.Duration, value ...string) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTemporaryDirs ¶
func GetStatePath ¶
func ParseDuration ¶
func SetupLogger ¶
func SetupLogger(level string) (*zap.Logger, *zap.SugaredLogger)
func ToBase58JSON ¶
func TrackLongFunc ¶
call function like this defer TrackLongFunc()()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.