package api import ( "net/http" "github.com/go-chi/chi/v5" ) func Start() { r := chi.NewRouter() r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello world")) }) r.Route("/whoami", func(r chi.Router) { r.Get("/", Whoami) }) http.ListenAndServe(":3000", r) }