gconv

package
v0.0.0-...-323b3cb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(bs []uint8) string

[]uint8 to string

func Float2String

func Float2String(a float64) string

func GetRequestKey

func GetRequestKey(r *http.Request, key string) string

获取参数,不支持keys 0

func Int2String

func Int2String(a int) string

func Int642String

func Int642String(a int64) string

func Int82String

func Int82String(a int8) string

func String2Float

func String2Float(s string, defaultVal float64) float64

func String2Int

func String2Int(s string, defaultVal int) int

转换默认值

func String2Int64

func String2Int64(s string, defaultVal int64) int64

func String2Int8

func String2Int8(s string, defaultVal int8) int8

func String2Uint64

func String2Uint64(s string, defaultVal uint64) uint64

func Uint642String

func Uint642String(a uint64) string

func Utf8SubStr

func Utf8SubStr(str string, start, length int) (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