An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
March 20, 2022 05:01 am GMT
Original Link: https://dev.to/pallat/phaarkicch-tour-of-go-phaasaaaithy-1h28
Tour of Go
Tour of Go
- merge
- deploy app engine
3 3 2 Go Theme website source code Tour repo code deploy Generics code
hack
Tour Theme hack
deploy
1 run Tour
web site official Go repo https://github.com/golang/website
repo run command web site Go Tour path /tour
Tour deploy App Engine Tour
go run ./cmd/golangorg
README dir /tour main.go go run main.go
local
2 deploy App Engine
app.yaml /tour
runtime: go116main: ./tourhandlers: - url: /.* script: auto secure: always
Tour GAE Tour Run 3
3 Run
internal/proxy/proxy.go
func RegisterHandlers(mux *http.ServeMux) { for _, host := range []string{"golang.org", "go.dev/_", "golang.google.cn", "go-tour-th.appspot.com/_"} { mux.HandleFunc(host+"/compile", compile) if host != "golang.google.cn" { mux.HandleFunc(host+"/share", share) } mux.HandleFunc(host+"/fmt", fmtHandler) }}
host "go-tour-th.appspot.com/_"
code internal/tour/local.go
proxy.RegisterHandlers(mux)
repo
Original Link: https://dev.to/pallat/phaarkicch-tour-of-go-phaasaaaithy-1h28
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To