escapeutil

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(input string) string

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

func SafeUnescape(input string) string

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.

func Unescape

func Unescape(input string) (string, error)

Unescape 解码指定的字符串。 Unescape decodes the given string. 参数 (param): input string - 需要被解码的字符串。 参数 (param): input string - the string to be decoded. 返回值 (return): string - 解码后的字符串。 返回值 (return): string - the decoded string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL