Problems introduced by golang custom package

recently I have been learning go for the first time.

where the custom package is introduced, errors are reported all the time

this is hello.go

clipboard.png

web/web.go

clipboard.png

gopath

clipboard.png

I don"t know what"s wrong with

. Ask the great god for an answer.

Jun.23,2021
hello/web of
hello.go changed to web
each GOPATH has no inheritance relationship


the path of the reference package is calculated from the src of GOPATH. You should introduce "web".
clipboard.png this error is written very clearly

.
Menu