/
View dependency graph
Depends on
- dh-golang (dh-golang)
- golang-defaults (golang-any)
- debhelper-compat
README (full)
mahonia
character-set conversion library implemented in Go.
Mahonia is a character-set conversion library implemented in Go. All data is compiled into the executable; it doesn't need any external data files.
based on http://code.google.com/p/mahonia/
install
go get github.com/axgle/mahonia
example
package main
import "fmt"
import "github.com/axgle/mahonia"
func main(){
enc:=mahonia.NewEncoder("gbk")
//converts a string from UTF-8 to gbk encoding.
fmt.Println(enc.ConvertString("hello,世界"))
}
donate
https://github.com/axgle/mahonia/wiki/Donate
| dir | debian/ |
| dir | mahoniconv/ |
| file | 8bit.go |
| file | ASCII.go |
| file | LICENSE |
| file | README.md |
| file | big5-data.go |
| file | big5.go |
| file | charset.go |
| file | convert_string.go |
| file | entity.go |
| file | entity_data.go |
| file | euc-jp.go |
| file | fallback.go |
| file | gb18030-data.go |
| file | gb18030.go |
| file | gbk-data.go |
| file | gbk.go |
| file | jis0201-data.go |
| file | jis0208-data.go |
| file | jis0212-data.go |
| file | mahonia_test.go |
| file | mbcs.go |
| file | reader.go |
| file | shiftjis.go |
| file | translate.go |
| file | utf16.go |
| file | utf8.go |
| file | writer.go |