16 lines
223 B
Go
16 lines
223 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"code.patial.tech/go/mux"
|
|
)
|
|
|
|
func main() {
|
|
r := mux.New()
|
|
r.GET("/", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("welcome"))
|
|
})
|
|
http.ListenAndServe(":3001", r)
|
|
}
|