Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

helloworld.go:2:8: cannot find package "fmt" in any of: #30

Open
lizitong67 opened this issue Mar 16, 2021 · 0 comments
Open

helloworld.go:2:8: cannot find package "fmt" in any of: #30

lizitong67 opened this issue Mar 16, 2021 · 0 comments

Comments

@lizitong67
Copy link

I encountered the following error in ubuntu18 and manjaro, why?

Setting up environment...

I will now run a test Hello World program with Go to ensure things are OK...
helloworld.go:2:8: cannot find package "fmt" in any of:
        /home/gosint/go/src/fmt (from $GOROOT)
        /home/gosint/projects/src/fmt (from $GOPATH)
package main
        imports runtime: cannot find package "runtime" in any of:
        /home/gosint/go/src/runtime (from $GOROOT)
        /home/gosint/projects/src/runtime (from $GOPATH)
Some error encountered...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant