I installed go on Windows. GOPATH is set to this:
c:\go-workspace
I have file called login.go in this directory:
C:\go-workspace\src\github.com\llnw\login
login.go contains this:
package main
func main() {
fmt.Printf("login
")
}
I tried the following to build:
go build github.com/llnw/login/login
But I get this error:
can't load package: package github.com/llnw/login/login: cannot find package "github.com/llnw/login/login" in any of:
C:\Go\src\github.com\llnw\login\login (from $GOROOT)
C:\go-workspace\src\github.com\llnw\login\login (from $GOPATH)
What am I doing wrong?