Documentation ¶
Index ¶
- func Bytes2String(b []byte) string
- func BytesToString(b []byte) string
- func ConvertAssign(dest, src interface{}) error
- func FloatToStr(f float64, precise ...int) string
- func FormatFloat(f float64, precise ...int) string
- func FormatFloat32(f float32, precise ...int) string
- func FromUTF8(sourceString string, charset string) string
- func GbkToUtf8(bs []byte) ([]byte, error)
- func GetSysTimeLayout() string
- func MapStringToValue[T any](m map[string]interface{}, key string) T
- func String2Bytes(s string) []byte
- func StringToBytes(s string) []byte
- func ToBool(v interface{}, defaultValue ...bool) (bool, error)
- func ToBoolValue(v interface{}, defaultValue ...bool) bool
- func ToFloat32(v interface{}, defaultValue ...float32) (float32, error)
- func ToFloat32Value(v interface{}, defaultValue ...float32) float32
- func ToFloat64(v interface{}, defaultValue ...float64) (float64, error)
- func ToFloat64Value(v interface{}, defaultValue ...float64) float64
- func ToInt(v interface{}, defaultValue ...int) (int, error)
- func ToInt64(v interface{}, defaultValue ...int64) (int64, error)
- func ToInt64Value(v interface{}, defaultValue ...int64) int64
- func ToIntValue(v interface{}, defaultValue ...int) int
- func ToMapStringInterface(v interface{}) (map[string]interface{}, bool)
- func ToString(v interface{}, defaultValue ...string) (string, error)
- func ToStringValue(v interface{}, defaultValue ...string) string
- func ToUTF8(sourceString string, charset string) string
- func U16ToU8(data []byte) ([]byte, error)
- func U8ToU16(data []byte, bigEndian bool) ([]byte, error)
- func UnicodeStringToUtf8(raw string) (string, error)
- func UnicodeToString(data []byte) string
- func UnicodeToUtf8(u16 []byte) string
- func Utf8ToGbk(bs []byte) ([]byte, error)
- type Bool
- type Int
- type Int64
- type RawBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2String ¶
func BytesToString ¶
func ConvertAssign ¶
func ConvertAssign(dest, src interface{}) error
func FloatToStr ¶
func FormatFloat ¶
func FormatFloat32 ¶
func GetSysTimeLayout ¶
func GetSysTimeLayout() string
func MapStringToValue ¶
func String2Bytes ¶
func StringToBytes ¶
func ToBoolValue ¶
func ToFloat32Value ¶
func ToFloat64Value ¶
func ToInt64Value ¶
func ToIntValue ¶
func ToMapStringInterface ¶
func ToStringValue ¶
func UnicodeStringToUtf8 ¶
func UnicodeToString ¶
func UnicodeToUtf8 ¶
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
////////////////////////////Bool////////////////////////////
Click to show internal directories.
Click to hide internal directories.