16 lines
230 B
Go
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)
|
||
|
|
}
|