Getting package missing error while running “go build”

  Kiến thức lập trình

Hi All getting below error while running go build. Just give me some solution to solve this problem.
go build ./…
../../go/pkg/mod/bitbucket.org/creachadair/[email protected]/stringset.go:16:2: package maps is not in GOROOT (/usr/local/go/src/maps)
But /usr/local/go/src/ under this directory ‘maps’ directory not found not sure what went wrong. Can someone help me to solve this problem

The file ../../go/pkg/mod/bitbucket.org/creachadair/[email protected]/stringset.go this file contains import ‘maps’.. But not sure where its importing from as it has may map directory under go directroy

New contributor

thenmozhi manoharan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT