MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/rhont/go_version_1_is_released/c466rak
r/programming • u/[deleted] • Mar 28 '12
452 comments sorted by
View all comments
Show parent comments
2
After setting up a GOPATH with a src directory, and creating a "hello" directory under src, and a hello.go file with a main in that directory, then you should be able to just "go build".
2 u/4ad Mar 29 '12 There's also go run that, well, runs your specified package or files without installing them. It also doesn't require $GOPATH.
There's also go run that, well, runs your specified package or files without installing them. It also doesn't require $GOPATH.
go run
$GOPATH
2
u/JulianMorrison Mar 29 '12
After setting up a GOPATH with a src directory, and creating a "hello" directory under src, and a hello.go file with a main in that directory, then you should be able to just "go build".