tool_convert

package
v0.0.0-...-0b46f60 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64ToString

func Float64ToString(a float64) string

Float64ToString @Converter implicit

func Int16ToString

func Int16ToString(a int16) string

Int16ToString @Converter implicit

func Int32ToString

func Int32ToString(val int32) string

Int32ToString @Converter implicit

func Int64ToString

func Int64ToString(val int64) string

Int64ToString @Converter implicit

func IntToString

func IntToString(val int) string

IntToString @Converter implicit

func MustToBool

func MustToBool(value interface{}) bool

func MustToFloat64

func MustToFloat64(data interface{}) float64

func MustToInt64

func MustToInt64(value interface{}) int64

func StringToFloat64

func StringToFloat64(s string) float64

StringToFloat64 @Converter implicit

func StringToInt

func StringToInt(str string) int

StringToInt @Converter implicit

func StringToInt16

func StringToInt16(s string) int16

StringToInt16 @Converter implicit

func StringToInt32

func StringToInt32(str string) int32

StringToInt32 @Converter implicit

func StringToInt32Slice

func StringToInt32Slice(s string, sep string) (ret []int32)

StringToInt32Slice :

func StringToInt64

func StringToInt64(str string) int64

StringToInt64 @Converter implicit

func StringToUint

func StringToUint(s string) uint

StringToUint @Converter implicit

func StringToUint16

func StringToUint16(s string) uint16

StringToUint16 @Converter implicit

func StringToUint32

func StringToUint32(s string) uint32

StringToUint32 @Converter implicit

func StringToUint64

func StringToUint64(s string) uint64

StringToUint64 @Converter implicit

func ToString

func ToString(v interface{}) string

ToString convert some type to string []string{"a","b"} => "a,b" []int{1,2} => "1,2" []string{} => ""

func ToStringSlice

func ToStringSlice(v interface{}) []string

ToStringSlice .

func Uint16ToString

func Uint16ToString(a uint16) string

Uint16ToString @Converter implicit

func Uint32ToString

func Uint32ToString(a uint32) string

Uint32ToString @Converter implicit

func Uint64ToString

func Uint64ToString(a uint64) string

Uint64ToString @Converter implicit

func UnsafeStringToByte

func UnsafeStringToByte(s string) []byte

UnsafeStringToByte .

Types

This section is empty.

Jump to

Keyboard shortcuts

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