unicode-programming/normalization/go.md at master · patch/unicode-programming

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Latest commit

History

History

14 lines (11 loc) · 403 Bytes

File metadata and controls

14 lines (11 loc) · 403 Bytes

Unicode normalization in Go

Unicode normalization is available in the unicode/norm package from the go.text project.

import "code.google.com/p/go.text/unicode/norm"

nfd  := norm.NFD.String(str)
nfc  := norm.NFC.String(str)
nfkd := norm.NFKD.String(str)
nfkc := norm.NFKC.String(str)