core

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 DecodeBase58Str

func DecodeBase58Str(input string) []byte

DecodeBase58Str input string

func Has0xPrefix

func Has0xPrefix(input string) bool

Has0xPrefix input has 0x prefix

func SliceSplitFrom added in v0.0.8

func SliceSplitFrom[T comparable](slice []T, index int) (first []T, second []T)

SliceSplitFrom Split Slice

func StdErr

func StdErr(reason string, err error) error

StdErr return standard Err

func UniqueAppend added in v0.0.7

func UniqueAppend[T comparable](slice []T, lookup T) []T

UniqueAppend judge and append key

func UnmarshalDataByEncoding added in v0.0.7

func UnmarshalDataByEncoding(input []byte) ([]byte, string, error)

UnmarshalDataByEncoding Unmarshal data to string by encoding

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL