Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 20, 2022 05:01 am GMT

Tour of Go

Tour of Go

  1. merge
  2. 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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To