Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was 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

@alston2506

Description

@alston2506

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions