package main
import (
"fmt"
"net/http"
"sun"
)
type IndexHandler struct{}
func (i *IndexHandler) Get(w http.ResponseWriter, r *http.Request, ps sun.Params) {
fmt.Fprintf(w, "Hello myroute!")
}
func main() {
r := sun.New()
r.Handle("/", new(IndexHandler))
r.Handle("/2/", new(IndexHandler))
r.Run("0.0.0.0:8888")
}
-
Notifications
You must be signed in to change notification settings - Fork 0
legenove/sun
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published