Skip to content

A GNU libiconv wrapper for Go

Notifications You must be signed in to change notification settings

HENNGE/go-iconv

Repository files navigation

go-iconv

Go

go-iconv is a GNU libiconv wrapper for Go.

Run the tests

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

Acknowledgement

Caveats: The original author doesn't seem to put LICENSE notice. We also just treat it as-is.

About

A GNU libiconv wrapper for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published