utils

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcNextNotifyTime

func CalcNextNotifyTime(base time.Time, num int) time.Time

func Capitalize

func Capitalize(s string) string

func Ec

func Ec(str string) string

func EpusdtSign

func EpusdtSign(data map[string]interface{}, token string) string

func GenerateTradeId

func GenerateTradeId() (string, error)

func HexStr2Int

func HexStr2Int(str string) *big.Int

func InStrings

func InStrings(str string, list []string) bool

func IsExist

func IsExist(path string) bool

IsExist 判断文件是否存在

func IsNumber

func IsNumber(s string) bool

func IsValidAptosAddress

func IsValidAptosAddress(address string) bool

func IsValidEvmAddress

func IsValidEvmAddress(address string) bool

func IsValidSolanaAddress

func IsValidSolanaAddress(address string) bool

func IsValidTronAddress

func IsValidTronAddress(address string) bool

func MaskAddress

func MaskAddress(address string) string

func MaskAddress2

func MaskAddress2(address string) string

func MaskHash

func MaskHash(hash string) string

func Md5String

func Md5String(text string) string

func NewHttpClient

func NewHttpClient() *http.Client

func NewTronGrpcClient

func NewTronGrpcClient(apiNode, apiKey string) (*grpc.ClientConn, error)

NewTronGrpcClient 目前很多 TRON API 基本都有QPS限制,过于激进或者过于保守的重试策略都不合适

func StrSha256

func StrSha256(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