Hi Marco,

Quoting marco guidetti (2012-07-09 05:17:22)
>         I would have expected to find a bin/ sudirectory, together with the
> src/ one, with the binary just built inside.
Please be a bit more specific: To which value precisely did you set
GOPATH? What content do your source files contain and what is their
name?

A common mistake is omitting a package called "main". Here is a small
hello world example:

export GOPATH=/home/michael/gocode
mkdir -p ~/gocode/src/helloworld
cd ~/gocode/src/helloworld
cat >helloworld.go <<EOF
package main
import "fmt"
func main() {
        fmt.Println("Hello world")
}
EOF
go build
./helloworld

Best regards,
Michael



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to