What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-19 15:10:17
golang ssh server and lets encrypt auto
package main import ( "crypto/tls" "fmt" "net/http" "golang.org/x/crypto/acme/autocert" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {... Add solution -
Go 2021-11-06 01:19:10
golang http get query parameters
package main import ( "log" "net/http" ) func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } func handler(w http.ResponseWriter, r *http.Request) { keys, ok := r.U... Add solution -
Go 2021-10-19 02:33:03
golang render html template
// parse html via index.html package main import ( "net/http" "text/template" ) type Context struct { Title string Name string Fruits [3]string } func main() { http.HandleFunc("/", func(w http.ResponseWriter, req... Add solution -
Go 2021-10-10 06:59:10
Golang HTTP Server
// Code by Divyanshu Shekhar - https://divyanshushekhar.com/golang-http-server/ // Golang HTTP Server package main import ( "fmt" "log" "net/http" ) const ( // Host name of the HTTP Server Host = "localhost"... Add solution