Documentation ¶
Index ¶
- func EncodeInt(val interface{}) []byte
- func GetEnvelopeName(raw string) string
- func GetProcessName(raw string) string
- func GetTransactionName(raw string) string
- func GetTransactionType(raw *models.Tx) string
- func HexToString(bytes []byte) string
- func IntToString(val interface{}) string
- func Max(a, b int) int
- func Min(a, b int) int
- func MsToSecondsString(ms int32) string
- func MsToString(ms int32) string
- func SearchSlice(source []string, search string) []string
- func StringInSlice(a string, list []string) bool
- func TrimHex(str string) string
- func TrimSlice(slice []string, lim int, page *int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeInt ¶
func EncodeInt(val interface{}) []byte
EncodeInt encodes an integer to a byte array
func GetEnvelopeName ¶
GetEnvelopeName translates a raw envelope type to a name
func GetProcessName ¶
GetProcessName translates a raw process type to a name
func GetTransactionName ¶
GetTransactionName translates a raw transaction type to a name
func GetTransactionType ¶
GetTransactionType translates a raw transaction to a type string
func HexToString ¶
HexToString converts an array of hexbytes to a string
func IntToString ¶
func IntToString(val interface{}) string
IntToString takes an int32, int64, or int, and returns a string
func MsToSecondsString ¶
MsToSecondsString only returns the second part of a ms unit, as a string
func MsToString ¶
MsToString turns a milliseconds int32 to a readable string
func SearchSlice ¶
SearchSlice searches a slice of strings and returns all strings who have substrings matching the search term
func StringInSlice ¶
StringInSlice returns true if given string is in the list of strings
Types ¶
This section is empty.