Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Escape ¶
Escape 编码指定的字符串。 Escape encodes the given string. 参数 (param): input string - 需要被编码的字符串。 参数 (param): input string - the string to be encoded. 返回值 (return): string - 编码后的字符串。 返回值 (return): string - the encoded string.
func SafeUnescape ¶
SafeUnescape 安全地解码指定的字符串,如果输入字符串不是被Escape编码的,返回原文。 SafeUnescape safely decodes the given string, returning the original text if it was not encoded by Escape. 参数 (param): input string - 需要被解码的字符串。 参数 (param): input string - the string to be decoded. 返回值 (return): string - 解码后的字符串或者原文。 返回值 (return): string - the decoded string or the original text if not encoded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.