Files
mux/playground/chi/main.go

16 lines
230 B
Go
Raw Normal View History

2025-09-17 22:09:01 +05:30
package main
import (
"net/http"
"github.com/go-chi/chi/v5"
)
func main() {
r := chi.NewRouter()
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("welcome"))
})
http.ListenAndServe(":3001", r)
}