Documentation ¶
Index ¶
- func BoolToString(b bool) string
- func BytesToDecimal(bytes []byte) decimal.Decimal
- func BytesToStringNoCopy(bytes *[]byte) *string
- func CombinePath(args ...string) string
- func DecimalLeftShift(d decimal.Decimal, decimals int32) decimal.Decimal
- func DecimalRightShift(d decimal.Decimal, decimals int32) decimal.Decimal
- func DecimalToBytes(d decimal.Decimal) []byte
- func DecimalToString(d decimal.Decimal) string
- func EqualStringIgnoreCase(a, b string) bool
- func Float32ToString(f float32) string
- func Float64ToString(f float64) string
- func GetProgramRootPath() string
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func IntToBool(i int32) bool
- func IntToString(i int) string
- func IsExistPath(path string) bool
- func IsNilOrWhiteSpace(s string) bool
- func MapPath(uri string) string
- func ParseBool(b string) bool
- func ParseDecimal(s string) decimal.Decimal
- func ParseFloat32(s string) float32
- func ParseFloat64(s string) float64
- func ParseInt(s string) int
- func ParseInt32(s string) int32
- func ParseInt64(s string) int64
- func ReadFile(path string) string
- func ReadFileBytes(path string) []byte
- func StringContainsAny(s string, arr *[]string)
- func StringContainsAnyIgnoreCase(s string, arr *[]string)
- func StringToBytesNoCopy(s *string) *[]byte
- func Substring(source string, start int, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func BytesToStringNoCopy ¶
func DecimalLeftShift ¶
十进制左移
func DecimalRightShift ¶
十进制右移
func DecimalToString ¶
func Float32ToString ¶
func Float64ToString ¶
func Int32ToString ¶
func Int64ToString ¶
func IntToString ¶
func IsExistPath ¶
func ParseDecimal ¶
func ParseFloat32 ¶
func ParseFloat64 ¶
func ParseInt32 ¶
func ParseInt64 ¶
func ReadFileBytes ¶
func StringContainsAnyIgnoreCase ¶
判断字符串是否包含数组中任意一个元素,忽略大小写
func StringToBytesNoCopy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.