stringx

package
v0.0.0-...-1db1413 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BUnicodeToUtf8

func BUnicodeToUtf8(s []byte) string

Convert string like \u4f60\u597d to utf-8 encode \u4f60\u597d means 你好(hello)

func IsDigit

func IsDigit(data string) bool

IsDigit judement data is any of 1234567890

func MustU2S

func MustU2S(from string) string

func MustUnquote

func MustUnquote(s string) string
Example
test := "aaa\\u6388\\u6743\\u9a8c\\u8bc1\\u5931\\u8d25\\uff1a\\u8bf7\\u6c42\\u53d7\\u9650"
fmt.Println(UnicodeToUtf8(test))
Output:

func U2S

func U2S(form string) (to string, err error)

func UnicodeToUtf8

func UnicodeToUtf8(s string) string

Convert string like \u4f60\u597d to utf-8 encode \u4f60\u597d means 你好(hello)

Types

This section is empty.

Jump to

Keyboard shortcuts

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