utfdecode

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 3 Imported by: 0

README

utfdecode

go report card coverage godocs

This is escaped unicode string decoder.

Use like this(Go Playground):

s, _ := utfdecode.Decode(`\uD83D\uDE04あ\uD83D\uDE07い\uD83D\uDC7Aう`)
fmt.Println(s) // 😄あ😇い👺う

Licence

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCodePositionStringToRune = errors.New("error: failed to parse string to code position")

Functions

func Decode added in v1.0.2

func Decode(s string) (string, error)

Types

type UtfDecode

type UtfDecode struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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