Documentation ¶
Index ¶
- Constants
- func AESDecrypt(crypt, key []byte) []byte
- func AESEncrypt(origData, key []byte) []byte
- func AsciiToChar(i int) string
- func AsciiToStr(str string) (string, error)
- func BinDec(b string) (n int64, err error)
- func BinHex(b string) (string, error)
- func BinOct(b string) (int64, error)
- func ByteCountIEC(b int64) string
- func Compression(oriData []byte) []byte
- func ConvertByte(b []byte, charset charset) []byte
- func DecBin(n int64) string
- func DecHex(n int64) (string, error)
- func DecOct(d int64) (int64, error)
- func DecodeBase64(value string) (string, error)
- func DecodeHtml(htmlStr string) string
- func DecodePacked(value string) (string, error)
- func DecodeRsa(data string) (string, error)
- func DecodeURI(value string) (string, error)
- func Decompress(oriData []byte) []byte
- func EncodeBase64(value string) string
- func EncodeHtml(htmlStr string) string
- func EncodePacked(value string) (string, error)
- func EncodeRsa(data []byte) (string, error)
- func EncodeURI(value string) string
- func Escape(value string) (string, error)
- func GBKToUtf8(gbkStr string) (string, error)
- func GenRandomString(l int) string
- func GetRsaPublicKey() string
- func HexBin(h string) (string, error)
- func HexDec(h string) (n int64, err error)
- func HexOct(h string) (int64, error)
- func HexStr(str string) (string, string, string)
- func HtmlEscape(htmlStr string) string
- func HtmlUnescape(str string) (string, error)
- func IPString2Long(ip string) (uint, error)
- func Interface2String(i interface{}) string
- func LoadRsaPrivateKey(pemData []byte)
- func Long2IPString(i uint) (string, error)
- func MssqlStrToString(mssqlStr string) string
- func OctBin(o int64) (string, error)
- func OctDec(o int64) (n int64, err error)
- func OctHex(o int64) (string, error)
- func OracleStrToString(oracleStr string) string
- func PKCS7Padding(origData []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func PaserRsaPublicKey(pemData string) *rsa.PublicKey
- func StcFieldTagMap(v reflect.Value, tagName string, tf map[string]string)
- func StrHex(str string) (string, error)
- func StrToASCII(str string) string
- func StringFromCharCode(str string) string
- func StringToMssqlStr(str string) string
- func StringToOracleStr(str string) string
- func StringToUnicode(value string) (string, string)
- func URICompCoding(value string) string
- func URICompDecoding(value string) (string, error)
- func URLEscape(path string, escapeSlash bool) string
- func URLUnescape(path string) string
- func UnStringFromCharCode(str string) (string, error)
- func Unescape(value string) (string, error)
- func UnicodeToString(form string) (to string, err error)
- func Utf8ToGBK(utf8str string) (string, error)
Constants ¶
View Source
const ( UTF8 = charset("UTF-8") GB18030 = charset("GB18030") )
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
func AESEncrypt ¶
func Compression ¶
func ConvertByte ¶
ConvertByte 将b charset转换为UTF-8编码
func DecodeBase64 ¶
func DecodeHtml ¶
func DecodePacked ¶
func Decompress ¶
func EncodeBase64 ¶
func EncodeHtml ¶
func Interface2String ¶
func Interface2String(i interface{}) string
Interface2String interface转string
func OracleStrToString ¶
OracleStrToString oracle字符串转字符串
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func PaserRsaPublicKey ¶
PaserRsaPublicKey 解析rsa公钥
func StcFieldTagMap ¶
StcFieldTagMap 获取struct字段名与tag的映射关系,并存储到tf中(map[tag]name)
func StringFromCharCode ¶
StringFromCharCode String.fromCharCode
func StringToUnicode ¶
StringToUnicode 中文转unicode编码
func URICompCoding ¶
func URICompDecoding ¶
func UnStringFromCharCode ¶
func UnicodeToString ¶
UnicodeToString unicode编码转中文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.