go-iconv
is a GNU libiconv wrapper for Go.
Linux (via Docker):
docker compose build
docker compose run --rm builder bash
go test -v
Linux (Native):
# run ./scripts/build_libiconv_debian.sh to install libiconv on your system
go test -v
Darwin (macOS):
# ensure you have installed libiconv via homebrew
brew install libiconv
# ensure you have CGO variables to use brew's libiconv
export CGO_CFLAGS="${CGO_CFLAGS} -I${HOMEBREW_PREFIX}/opt/libiconv/include"
export CGO_LDFLAGS="${CGO_LDFLAGS} -L${HOMEBREW_PREFIX}/opt/libiconv/lib"
go test -v
HENNGE/go-iconv
is based on https://github.com/bu-/go-iconv- which is based on https://github.com/mattn/go-iconv
- which is based on https://github.com/sloonz/go-iconv
- which is based on https://github.com/oibore/go-iconv (original)
Caveats: The original author doesn't seem to put LICENSE notice. We also just treat it as-is.