W:\source\go\src>go install github.com\user\hellocan't load package: package github.com/user/hello: read W:\source\go\src\github.com\user\hello\hello.go: unexpected NUL in input
// You can edit this code!// Click here and start typing.package mainimport "fmt"func main() {fmt.Println("Hello")}
Thanks,
John
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
package mainimport "fmt"func main() {
fmt.Printf("Hello, world.\n")}
W:\source\go>go install hellocan't load package: package hello: cannot find package "hello" in any of:W:\source\go\src\pkg\hello (from $GOROOT)W:\tools\go\src\hello (from $GOPATH)
I changed the code to the following & it didn't work.package mainimport "fmt"func main() {fmt.Printf("Hello, world.\n")}
W:\source\go>go install hello
can't load package: package hello: read W:\source\go\src\pkg\hello\hello.go: unexpected NUL in input
Someone should put this in official go document. Is there anyway I could update it? It is owned by Google...I assume not?
$ file -I main.go
main.go: text/x-c; charset=utf-8
$ file -I cmd/root.go
cmd/root.go: text/x-c; charset=utf-8