Documentation ¶
Index ¶
- func Abs32(x float32) float32
- func Base64Dec(a string) ([]byte, error)
- func Base64Enc(a []byte) string
- func Base64FlateDec(a string) ([]byte, error)
- func Base64TwoZlibDec(v string) ([]byte, error)
- func Base64TwoZlibEnc(a []byte) string
- func Base64ZlibDec(a string) ([]byte, error)
- func Base64ZlibEnc(a []byte) string
- func ChangeFileExt(s, ext string) string
- func CommaTextToDynInt(a string) (b []int)
- func DynIntToCommaText(a []int) string
- func ExtractFileName(s string) string
- func GB18030Dec(r io.Reader) *transform.Reader
- func GB18030DecStr(v string) (string, error)
- func GB18030Enc(r io.Reader) *transform.Reader
- func GB18030EncStr(v string) string
- func GB2312DecStr(v string) (string, error)
- func GB2312EncStr(v string) string
- func GBKDecStr(v string) (string, error)
- func GBKEncStr(v string) string
- func GbkDec(r io.Reader) *transform.Reader
- func GbkEnc(r io.Reader) *transform.Reader
- func GetBool(v interface{}) bool
- func GetInt(v interface{}) int
- func GetString(v interface{}) string
- func HTMLDec(v string) (string, error)
- func HTMLEnc(v string) string
- func HexDec(a string) ([]byte, error)
- func HexEnc(a []byte) string
- func IfEmpty(a, b string) string
- func IsDirectory(path string) (bool, error)
- func IsExists(path string) (bool, error)
- func MaxInt(x, y int) int
- func MaxInt64(x, y int64) int64
- func MinInt(x, y int) int
- func MinInt64(x, y int64) int64
- func ParseTime(v string) (time.Time, error)
- func PrintJSON(v interface{})
- func PrintJSONIndent(v interface{})
- func StrToFloat(s string) float64
- func StrToFloat32(s string) float32
- func StrToFloat32Def(s string, def float32) float32
- func StrToInt(s string) int
- func StrToIntDef(s string, def int) int
- func TimetampToTime(v string) (time.Time, error)
- func ToGB18030Str(s string) ([]byte, error)
- func ToGBKStr(s string) ([]byte, error)
- func URLDec(v string) (string, error)
- func URLEnc(v string) string
- func UTF16DecStr(v string) (string, error)
- func UTF16EncStr(v string) string
- type WideString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64FlateDec ¶
func Base64TwoZlibDec ¶
func Base64TwoZlibEnc ¶
func Base64ZlibDec ¶
func Base64ZlibEnc ¶
func ChangeFileExt ¶
ChangeFileExt changes the Extension value of a file FileName, returning the new value as a string.
func CommaTextToDynInt ¶
func ExtractFileName ¶
ExtractFileName extracts the file name substring.
func GB18030DecStr ¶
func GB18030EncStr ¶
func GB2312DecStr ¶
func GB2312EncStr ¶
func PrintJSONIndent ¶
func PrintJSONIndent(v interface{})
func StrToFloat ¶
func StrToFloat32 ¶
StrToFloat32 Convert a float32 string into a float32 value
func StrToFloat32Def ¶
StrToFloat32Def Convert a string into an float32 value with default
func StrToIntDef ¶
StrToIntDef Convert a string into an int value with default
func TimetampToTime ¶
TimetampToTime string Timetamp to Time
func ToGB18030Str ¶
func UTF16DecStr ¶
func UTF16EncStr ¶
Types ¶
type WideString ¶
type WideString string
func (WideString) MarshalJSON ¶
func (p WideString) MarshalJSON() ([]byte, error)
func (WideString) MarshalText ¶
func (p WideString) MarshalText() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.