Documentation ¶
Index ¶
- Variables
- func BToMb(b uint64) uint64
- func GetHomeDir() (string, error)
- func GetRandomString(n int) string
- func IntToHumanTime(inputInt int64) string
- func PrintMemUsage()
- func SHA3hash(inputString string) string
- func StringToHumanTime(inputString string) string
- func StringToIntTime(inputString string) int64
- func Timestamp() string
- func ToBigInt(x interface{}) (*big.Int, error)
- func ToByte(x interface{}) ([]byte, error)
- func ToFloat(x interface{}) (float64, error)
- func ToInt(x interface{}) (int, error)
- func ToString(x interface{}) (string, error)
- func ToUint16(x interface{}) (uint16, error)
- func Unix() int64
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTypeNotSupported = errors.New("type not supported, please feel free to PR")
ErrTypeNotSupported is an error returned if the given type conversion isn't supported yet
Functions ¶
func GetRandomString ¶
GetRandomString gets a random string of length n
func IntToHumanTime ¶
IntToHumanTime converts an int64 to human readable time
func PrintMemUsage ¶ added in v1.1.1
func PrintMemUsage()
PrintMemUsage outputs the current, total and OS memory being used. As well as the number of garage collection cycles completed.
func StringToHumanTime ¶
StringToHumanTime converts an int64 in string form to human readable time
func StringToIntTime ¶
StringToIntTime converts a string to unix time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.