News
Home Home Contact us Contact
home News Projects Tests Files Follow manatlan on Twitter Sign in
8 years ago

The 0.5 release of GG is out

The 0.5 release of GG is out. It comes with some bugfixes, and a lot of patchs from steve (mainly : "no need to pass pointers to slices or maps, they are basically reference types anyway" ... thanks a lot : I had forgotten that ... and sure: it removes a lot of &/* in the code). There is no new feature ;-(. But I'm still working on a badly named "gg+" which is able to guess the gg'makefile for a set of files (using ast/token package). In fact, I would like to add this kind of feature in GG (but it will double the number of lines, sure ;-), and it's a little bit more complex than expected.

With this new version, GG comes with its own page on this website, which try to explain its features, and how it works. (but I'm agree : I can do a lot better ;-).

Comments (View) Tags: go
8 years ago

GG in Go language

Finally, I released a version of gg in the go language. It's work as gg.py, but uses commandline flags to do a little more (verbose/clear/don't run/full build).

see more

Comments (View) Tags: go
8 years ago

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

gg.py 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 :

gg.py 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, "makefile.gg" like that :

my_exe:
   f1.go
   f2.go

module1.a:
   g1.go
   g2.go

module2.a:
   h1.go

and run GG like that:

gg.py makefile.gg

Notes

  • 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

Comments (View) Tags: go

Tags

RSS aex aex
RSS d2 d2
RSS gae gae
RSS go go
RSS ppa ppa
RSS Python Powered Get Ubuntu
©opyleft 2008 - manatlan cmd snippets