package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Jul 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Length 检查字符串长度,如果包含汉字,一个汉字长度为 1
SubStr 字符串截取,从begin位开始,取长度为length的子串
func ToJSON(obj interface{}) (str string)
ToJSON 把对象转换为字符串
TrimAll 去掉字符串首尾空格和其中的回车换行符
传入字符串指针,不需要返回值
TrimJSONErrorChars 去掉可能导致JSON解析错误的字符
Source Files
¶
Click to show internal directories.
Click to hide internal directories.