Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How does the go build command work? (cheney.net)
51 points by jonbaer on Oct 23, 2013 | hide | past | favorite | 6 comments


I was a bit suprised when i returned to go about 6 months ago to find it had the build command. Originally you invoked these directly


"go run" is even better, it feels like running a python script, and doesn't leave a binary around when you're done


I'm still a huge fan of make. Is anyone using (gnu) make to build go projects? Looking for a nice Makefile template. :)


There used to be an official Make include for Go, bundled with the distribution. Don't know what the current status is, I think the go tool superseded it.

EDIT: does modern Go come with $(GOROOT)/src/Make.inc? https://github.com/quarterto/Alan/blob/master/Makefile


I use a pretty simple one! Do you have Github or something? I'm always looking for interesting golang projects


Great write up, look forward to seeing more.

Thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: