Serve Two Go Sites Locally
The following two Go sites can be served locally, which can be very useful when you don’t have internet connections.
To serve golang.org locally
godoc -http=0.0.0.0:4000
godoc
is installed with Go environment in $GOROOT/bin
.
To serve “A tour of Go” locally
go get golang.org/x/tour/gotour
gotour -http=0.0.0.0:4000
gotour
is installed in $GOPATH/bin
.