These bindings allow decoding and encoding of FLAC format audio data from Go using the libFLAC library.
go get github.com/cocoonlife/goflac
The code has support for decoding and encoding with various parameters however it is only quite lightly tested so it is likely that bugs remain.