x/website: tutorial create a module, cannot find package "example.com/greetings" #42871
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am trying to follow the tutorial to create and reference it in
hello.go
. The source code ofhello.go
can be found in the next page, call-module-code.But when I execute
go run hello.go
the process failed with error message. To workaround the issue, I need to deleteexample.com/
beforegreetings
. I double checked the context of the tutorial, there isn't a hint of creating directory structureexample.com/greetings
butgreetings
. I don't know whether it was working in the older version of go.May be creating the structure like this, before creating the
go.mod
, would smooth the experience of the tutorialWhat did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: