I was expecting to get 밥 and 좋은, for the last two output.
for the output but This does not "combine" any of the following.
This package does not do anything.
Could anybody tell what I did wrong in this code? I would greatly appreciate it.
import "code.google.com/p/go.text/unicode/norm"
import "fmt"
func main() {
str := "ㅈㅗㅎㅇㅡㄴ"
fmt.Println( string( norm.NFD.AppendString(nil, "앉") ) )
fmt.Println( string( norm.NFC.AppendString(nil, "바ㅂ") ) )
fmt.Println( string( norm.NFC.AppendString(nil, str) ) )
}
The package is from here
go get -u code.google.com/p/go.text/unicode/norm http://godoc.org/code.google.com/p/go.text/unicode/norm