A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rs/cors/raw/master/examples/chi/server.go below:

package main import ( "net/http" "github.com/go-chi/chi" "github.com/rs/cors" ) func main() { r := chi.NewRouter() // Use default options r.Use(cors.Default().Handler) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) }) http.ListenAndServe(":8080", r) }

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4