A Quick Guide for Go Modules
写在前面
快速开始
$ mkdir -p /tmp/scratchpad/hello
$ cd /tmp/scratchpad/hello$ go mod init github.com/you/hello
go: creating new go.mod: module github.com/you/hello$ cat <<EOF > hello.go
package main
import (
"fmt"
"rsc.io/quote"
)
func main() {
fmt.Println(quote.Hello())
}
EOFSee also
Last updated