unicode

package module
v0.0.0-...-414b45d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

go-unicode

parse unicode string to utf8 string

example

import (
 unicode "github.com/cocktail18/unicode"
)


unicodeStr := "\\\\ud83d\\\\udc37\\\\ud83d\\\\udc37"
fmt.Println(unicode.UnicodeToString(unicodeStr))
// output 🐷🐷 <nil>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUTF16ToString

func DecodeUTF16ToString(s []uint16) string

参考https://github.com/lianggx6/goutf16

func EncodeStringToUTF16

func EncodeStringToUTF16(s string) []uint16

func UnicodeToString

func UnicodeToString(from string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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