go-miniflac: A Go binding for the miniflac C library

75 views
Skip to first unread message

Woojong Koh

unread,
Aug 24, 2025, 4:07:23 PM (12 days ago) Aug 24
to golang-nuts
go-miniflac is a Go binding for the miniflac C library. The following is the miniflac
description from its author, @jprjr.

> A single-file C library for decoding FLAC streams. Does not use any C library functions, does not allocate any memory.

go-miniflac has a very simple interface, one function and one struct, and has zero external dependencies. However, Cgo must be enabled to compile this package.

One example is provided: converting a FLAC file to a WAV file using go-audio/wav.

Additionally, a Dockerfile example is available that demonstrates how to use `golang:1.25-bookworm` and `gcr.io/distroless/base-debian12` to run go-miniflac with Cgo enabled.

Check out the GitHub repository at https://github.com/cowork-ai/go-miniflac for more details.

* FLAC stands for Free Lossless Audio Codec, an audio format similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality.
Reply all
Reply to author
Forward
0 new messages