package main
import (
"net/http"
"github.com/barancanatbas/khanmux"
)
func main() {
r := khanmux.NewRouter()
r.GET("/name", Home)
http.ListenAndServe(":8080", r)
}
type User struct {
Name string `json:"name" xml:"name"`
Age int `json:"age" xml:"age"`
}
func Home(c khanmux.Context) error {
user := User{
Name: "baran2",
Age: 20,
}
return c.XML(201, user)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
barancanatbas/khanmux
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