In Go, the := operator is a shortcut for declaring and initializing a variable in one line (Go uses the value on the right to determine the variable's type)
$ go mod edit -replace example.com/greetings=../greetings
go run .
to run the main program
if name == "" { return "", errors.New("empty name") }
if err != nil { log.Fatal(err) }
Ending a file's name with _test.go tells the go test command that this file contains test functions.
The go test command executes test functions (whose names begin with Test) in test files (whose names end with _test.go). You can add the -v flag to get verbose output that lists all of the tests and their results.
You've compiled the application into an executable so you can run it. But to run it currently, your prompt needs either to be in the executable's directory, or to specify the executable's path.
$ go list -f '{{.Target}}'
$ go install