Documentation
¶
Index ¶
- func Contains(source interface{}, target interface{}) (bool, error)
- func GetBinDir() string
- func GetBinPath() (string, error)
- func GetENV(key string) string
- func GetENVToBool(key string) bool
- func GetENVToInt(key string) (int, error)
- func GetENVToInt64(key string) (int64, error)
- func GetIPs(filterPhysical ...bool) (ipv4 []string, err error)
- func GobMarshal(v interface{}) ([]byte, error)
- func GobUnmarshal(data []byte, v interface{}) error
- func IsDir(path string) bool
- func IsEmpty(value ...string) bool
- func IsFileExist(path string) (bool, os.FileInfo, error)
- func IsPhysicalInterfaceDevice(name string) (bool, error)
- func JsonMarshal(v interface{}) ([]byte, error)
- func JsonMarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func JsonMarshalToString(v interface{}) (string, error)
- func JsonUnmarshal(data []byte, v interface{}) error
- func RegGob(o ...interface{})
- func ToStr(value interface{}) (s string)
- type StringUtils
- func (s StringUtils) Base64Decode() (string, error)
- func (s StringUtils) Bool() (bool, error)
- func (s *StringUtils) Clear()
- func (s StringUtils) Contains(sep string) bool
- func (s StringUtils) Exist() bool
- func (s StringUtils) Float32() (float32, error)
- func (s StringUtils) Float64() (float64, error)
- func (s StringUtils) HmacSha1(key string) string
- func (s StringUtils) HmacSha256(key string) string
- func (s StringUtils) HmacSha512(key string) string
- func (s StringUtils) Int() (int, error)
- func (s StringUtils) Int16() (int16, error)
- func (s StringUtils) Int32() (int32, error)
- func (s StringUtils) Int64() (int64, error)
- func (s StringUtils) Int8() (int8, error)
- func (s StringUtils) Md5() string
- func (s StringUtils) ReplaceSBCCommaOrSemiColonToDBC() string
- func (s *StringUtils) Set(v string)
- func (s StringUtils) Sha1() string
- func (s StringUtils) Sha256() string
- func (s StringUtils) Sha512() string
- func (s StringUtils) StdBase64Encode() string
- func (s StringUtils) String() string
- func (s StringUtils) ToTitleLower() string
- func (s StringUtils) ToTitleUpper() string
- func (s StringUtils) URLBase64Encode() string
- func (s StringUtils) Uint() (uint, error)
- func (s StringUtils) Uint16() (uint16, error)
- func (s StringUtils) Uint32() (uint32, error)
- func (s StringUtils) Uint64() (uint64, error)
- func (s StringUtils) Uint8() (uint8, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPhysicalInterfaceDevice ¶
IsPhysicalInterfaceDevice 查看网卡是否是物理设备
func JsonMarshal ¶
func JsonMarshalIndent ¶
func JsonMarshalToString ¶
func JsonUnmarshal ¶
Types ¶
type StringUtils ¶
type StringUtils string
StringUtils *
func (StringUtils) Base64Decode ¶
func (s StringUtils) Base64Decode() (string, error)
Base64Decode *
func (StringUtils) ReplaceSBCCommaOrSemiColonToDBC ¶
func (s StringUtils) ReplaceSBCCommaOrSemiColonToDBC() string
ReplaceSBCCommaOrSemiColonToDBC 替换字符串中的全角逗号和分号为半角逗号
func (StringUtils) StdBase64Encode ¶
func (s StringUtils) StdBase64Encode() string
StdBase64Encode *
func (StringUtils) URLBase64Encode ¶
func (s StringUtils) URLBase64Encode() string
URLBase64Encode *
Click to show internal directories.
Click to hide internal directories.