qiniu / iconv

Golang bindings to libiconv - Convert string to requested character encoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello,you can contain the libiconv.a in package, like the following:

garfeng opened this issue · comments

In iconv.go

// #cgo darwin  LDFLAGS: -liconv_darwin_amd64 -L${SRCDIR}
// #cgo windows LDFLAGS: -liconv_windows_amd64 -L${SRCDIR}

filelist in root dir:
iconv.go
...
libiconv_darwin_amd64.a
libiconv_windows_amd64.a

So we do not need to install libiconv.
Also, the program will be built with the the libiconv.a archived in it , instead of running with dynamic libraries.

Refer to github.com/andlabs/ui

感谢大大们提供的绑定,好用的飞起~