Registry / utility / paulrosania-go-charset

paulrosania-go-charset

JSON →
library0.0.0-20190326053356-55c9d7a5834cgogounverified

Package go-charset provides character set conversion utilities for Go.

go get github.com/paulrosania/go-charset
INSTALL
IMPORT
SIG · PAULROSANIA-GO-CHA
P
paulrosania-go-charset
utilitygov0.0.0-20190326053356-55c9d7a5834c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

charset
github.com/paulrosania/go-charset

Convert a byte slice from UTF-8 to Latin-1 encoding.

package main import ( "fmt" "github.com/paulrosania/go-charset" ) func main() { data := []byte("hello") result, err := charset.Convert(charset.UTF8, charset.Latin1, data) if err != nil { fmt.Println(err) return } fmt.Println(string(result)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190326053356-55c9d7a5834clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
paulrosania-go-charset — go get paulrosania-go-charset · libregistry