emluque + go   46

HTTPS for free in Go, with little help of Let's Encrypt
hostPolicy := func(ctx context.Context, host string) error {
// Note: change to your real domain
allowedHost := "www.mydomain.com"
if host == allowedHost {
return nil
}
return fmt.Errorf("acme/autocert: only %s host is allowed", allowedHost)
}
tls  golang  go  webdev  https 
june 2018 by emluque
Simple Golang HTTP Request Context Example · Paul Fortin
mux := http.NewServeMux()

mux.HandleFunc("/", StatusPage)
go  golang  http  context 
may 2018 by emluque
Concise guide to golang/dep
go get -u github.com/golang/dep/cmd/dep
golang  go  package  management  programming 
february 2018 by emluque

Copy this bookmark:



description:


tags: