Documentation ¶
Index ¶
- Variables
- func BeautifyConsole(title, content any)
- func DecodeBase58Str(input string) []byte
- func Has0xPrefix(input string) bool
- func SliceSplitFrom[T comparable](slice []T, index int) (first []T, second []T)
- func StdErr(reason string, err error) error
- func UniqueAppend[T comparable](slice []T, lookup T) []T
- func UnmarshalDataByEncoding(input []byte) ([]byte, string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptySlice = errors.New("empty slice found") ErrEmptyString = errors.New("empty string found") ErrEmptyAccount = errors.New("empty account found") )
View Source
var NotFound = errors.New("not found")
NotFound is returned by API methods if the requested item does not exist.
Functions ¶
func BeautifyConsole ¶
func BeautifyConsole(title, content any)
BeautifyConsole console the content with json format
func SliceSplitFrom ¶ added in v0.0.8
func SliceSplitFrom[T comparable](slice []T, index int) (first []T, second []T)
SliceSplitFrom Split Slice
func UniqueAppend ¶ added in v0.0.7
func UniqueAppend[T comparable](slice []T, lookup T) []T
UniqueAppend judge and append key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.