Go language - Call your code from another module is not working
11:00 18 Jun 2026

In step 6 of this https://go.dev/doc/tutorial/call-module-code from Go's official website, when I run the following command, I get the error shown below:

$ go run .

Error:

\>hello.go:6:2: module example.com/greetings provides package example.com/greetings and is replaced but not required; to add it: go get example.com/greetings

Question: What I may have done wrong, and how can we fix the issue? I'm using `VSCode` with (Go extension)[https://code.visualstudio.com/docs/languages/go]

go vscode-extensions