Package xattr wraps OS X functions to manipulate the extended attributes of a file, directory and symbolic link.
Building is done with the go tool. If you have setup your GOPATH correctly the following should work:
go build github.com/bitcartel/go-osx-xattr
To use the package in your code:
import "github.com/bitcartel/go-osx-xattr"