3 ms·
I've did a small application called "go runner" - instead of writing Makefile to run the .go application - it's kind of smart and does it for you - just type "g
by malkia 17y ago
I've did a small application called "go runner" - instead of writing Makefile to run the .go application - it's kind of smart and does it for you - just type "go something" and it would compile (if needed) and run it, if "something.go" requies other .go modules it would compiled them too.
It's basically using the Go's own libraries to parse the given .go file, and detect what additional files needed to be compiled.
http://github.com/malkia/go-runner http://github.com/malkia/go-runner
But that won't compile with latest Go. I've stopped using Go, as I got busy with other things, but might come back at it.
- johngunderman 17y agoA friend of mine actually forked a project that is similar to what you describe. I believe it currently can build most Go projects, with the exception of libraries and Go code that calls C. Here's the link to his fork: http://github.com/timtadh/gobuild-fork http://github.com/timtadh/gobuild-fork
- stevejohnson 17y agoTim is also working on the project I mentioned elsewhere in the comments. We couldn't find a build tool we liked, so he forked gobuild and made a series of changes to make it more functional. We will try to get the maintainer to pull from us when we are sure the whole thing is stable and documented.