Files
mux/playground/chi/main.go
2025-09-17 22:09:01 +05:30

16 lines
230 B
Go

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)
}