golang bindings for btrfs (libbtrfs)
https://godoc.org/github.com/vbatts/go-btrfs/
To build, the btrfs-progs headers will need to be present.
On fedora, run: dnf install btrfs-progs-devel
On debian, run: apt-get install btrfs-tools
Then you can run:
go get github.com/vbatts/go-btrfs
See LICENSE docs.