modulized
go help mod
go help mod init
package main
import (
"fmt"
"github.com/leson/go_poc/greetings"
)
func main() {
fmt.Println("invoke self-define module of go!")
fmt.Println(greetings.Hello("Leson"))
}
go mod init go-mod-test
go mod tidy
go run main.go
Go code is grouped into packages, and packages are grouped into modules