go get github.com/google/gxui
cd /Users/hogehoge/go/src/github.com/google/gxui/samples
In file included from ../../../../go-gl-legacy/gl/attriblocation.go:7:
./gl.h:2:10: fatal error: 'GL/glew.h' file not found
#include <GL/glew.h>
というエラーがでます。.hファイルねーぞ!ということで
brew install glew
brew info glesでインストールパスの確認。-> includeとlibのパスを見とく
cd $GOPATH/src/github.com/go-gl-legacy/gl
CGO_CFLAGS="-I/usr/local/Cellar/glew/1.11.0/include" CGO_LDFLAGS="-L/usr/local/Cellar/glew/1.11.0/lib" go install
cd $GOPATH/src/github.com/google/gxui/samples/polyedit
cd polyedit
go run main.go