encoding

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: MIT Imports: 9 Imported by: 28

README

go-encoding

Build Status GoDoc Go Report Card

Collection of encodings.

Usage

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.

Installation

go get github.com/mattn/go-encoding

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncoding

func GetEncoding(name string) enc.Encoding

GetEncoding return Encoding if it have. Return nil if not have. This look the name with case-insensitive.

func Names

func Names() []string

Names return slice of encoding names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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