Re:Go-bootstrap: Generates a lean and mean Go web project
by enneff on Thursday May 07, 2015 @04:32PM
(#9508085)
I'm a bit confused as to why the initial step is a "git clone". Why not "go get"?
[ Parent
| on HN ]
Re:Go-bootstrap: Generates a lean and mean Go web project
by asurma on Thursday May 07, 2015 @04:35PM
(#9508101)
I agree. I thought it would be a blank project skeleton you are supposed to clone, but it’s not. So `go get` would make much more sense on the landing page.
Re:Go-bootstrap: Generates a lean and mean Go web project
by didip on Thursday May 07, 2015 @05:35PM
(#9508463)
Great point! I've updated the instruction.
Re:Go-bootstrap: Generates a lean and mean Go web project
by enneff on Thursday May 07, 2015 @05:51PM
(#9508568)
Looking better, but since the 'go get' step compiles your main.go and puts it in $GOPATH/bin/go-bootstrap, the instructions could be simpler still:
go get github.com/go-bootstrap/go-bootstrap
$GOPATH/bin/go-bootstrap -dir github.com/$GIT_USER/$PROJECT_NAME
cd $GOPATH/src/github.com/$GIT_USER/$PROJECT_NAME && go run main.go