Collection of encodings.
for _, n := range encoding.EncodingNames() {
println(n)
}
e := encoding.GetEncoding("cp932")
if e == nil {
panic("unknown encoding")
}
This return pointer of golang.org/x/text/encoding#Encoding.
go get github.com/mattn/go-encoding
MIT
Yasuhiro Matsumoto (a.k.a. mattn)