util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitSuccessLog                 = "success initialization"
	RecoverKeySuccessLog           = "recover key successfully"
	StoreContractsSuccessLog       = "store xns contracts successfully"
	InstantiatecontractsSuccessLog = "instantiate xns contracts successfully"
)

Variables

This section is empty.

Functions

func B

func B(str string) string

func BB

func BB(str string) string

func BgR

func BgR(str string) string

func FromStringToUint32

func FromStringToUint32(value string) (uint32, error)

func G

func G(str string) string

func LogErr

func LogErr(errType types.XnsError, errDesc ...interface{}) error

func LogInfo

func LogInfo(log ...interface{})

func LogKV

func LogKV(key string, value string)

func LogSuccess

func LogSuccess(log ...interface{})

func LogWait

func LogWait(log ...interface{})

func LogWarning

func LogWarning(log ...interface{})

func ParseAPI1Data

func ParseAPI1Data(r *http.Request) (string, error)

func ParseAPI2Data

func ParseAPI2Data(r *http.Request) (string, error)

func ParseAPI3Data

func ParseAPI3Data(r *http.Request) (string, error)

func R

func R(str string) string

func ToString

func ToString(value interface{}, defaultValue string) string

func ToStringTrim

func ToStringTrim(value interface{}, defaultValue string) string

func W

func W(str string) string

func Y

func Y(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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