A basic Go interface to performance events which are available in recent Linux kernels. A dummy implementation is provided for non-Linux OSes (FreeBSD, OS X, Windows).
Installation:
go get github.com/0xe2-0x9a-0x9b/Go-PerfEvents
For more information visit the wiki.