for China
GOPROXY=https://goproxy.io,directfor other areas
GOPROXY=https://proxy.golang.org,directgo run hello.gooutput as "你好,世界。"
GOOS=linux GOARCH=amd64 go builddocker build --build-arg goproxy=${GOPROXY} -t hello-go .docker run --rm hello-gooutput as "Hello, world."
please notice
replace golang.org/x/text => github.com/golang/text v0.3.2
in go.mod