util

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(args ...int) (sum int)

func Contains added in v1.1.5

func Contains(str string, prefixList []string) bool

func FromBase16

func FromBase16(base16 string) *big.Int

func GbkToUtf8 added in v1.1.5

func GbkToUtf8(s string) (string, error)

func HasPrefix added in v1.1.5

func HasPrefix(str string, prefixList []string) bool

func InArrayInt added in v1.2.0

func InArrayInt(needle int, stack []int) bool

func InArrayInt32 added in v1.2.0

func InArrayInt32(needle int32, stack []int32) bool

func InArrayInt64 added in v1.2.0

func InArrayInt64(needle int64, stack []int64) bool

func InArrayStr added in v1.2.0

func InArrayStr(needle string, stack []string) bool

func Int2byte

func Int2byte(i int) byte

func Int2str

func Int2str(i int) string

func Int64toStr

func Int64toStr(i int64) string

func MapCopy added in v1.1.0

func MapCopy(m map[string]interface{}) map[string]interface{}

func Max added in v1.0.1

func Max(args ...int) (m int)

func Min added in v1.0.1

func Min(args ...int) (m int)

func Str2Int

func Str2Int(s string) (int, error)

func Str2IntBase16

func Str2IntBase16(s string) (num int)

func Str2dec

func Str2dec(s string) (num int)

func StringTo16BaseByte

func StringTo16BaseByte(s string) []byte

func Utf8ToGbk added in v1.1.5

func Utf8ToGbk(s string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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