Google Go language and the GG builder
Home Home Contact us Contact
home News Projects Tests Files Follow manatlan on Twitter Sign in
back 2009/11/15 15:55

Google Go language and the GG builder

Just a quick&dirty builder for go language projects, using the marvelous yaml language. It's named "GG", and it's full of magics. And it let me build my go projects easily, so perhaps it will help you too. It's just a proof of concept, because I don't like make and makefiles, perhaps because all my editors use spaces instead of tabs ;-). I'm pretty sure that GG is not as powerful as make ;-), and it miss some flags in the GG command line (but perhaps in the future ?!). Patches are welcome ;-)

3 modes :

Run one file file.go

Will simply compile, build (executable named file) and run the executable.

Run shebang project

"shebang project", because you can declare your construction in the first line of your script ... using the yaml one line syntax :

if your script file.go starts like that :

//gg:{exe: file.go, module.a: f1.go f2.go f3.go}
package main

and you run : file.go

Will create the "module.a", using fX.go files. And it will build the executable exe with file.go, and run it.

Of course, you can build many executables (or none) or many packages or none. But GG will run the executable only if there is only one !

Run makefile project

If you dont like the bang project, or don't wan't to repeat your construction. You can create a simple yaml file, "" like that :




and run GG like that:


  • It uses your GOARCH/GOBIN environment variables !
  • It needs pyyaml !
  • Released under the terms of the BSD License

Download BUT Now GG is available in the go language

Tags: go
RSS Python Powered Get Ubuntu
©opyleft 2008-2019 - manatlan