Skip to content

rozaqabdul656/goind-router

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

router

Go ind router

Example

func main() { r := goind.SetupDefaultRouter()

r.Post("/", func(w http.ResponseWriter, req *http.Request) {
    goind.ResponseJSON(w, ctx, 200, true, "Succes", nil, nil)
})

v1 := r.Group("/parent")
v1.Get("/child", func(w http.ResponseWriter, req *http.Request) {
    goind.ResponseJSON(w, ctx, 200, true, "Succes", nil, nil)
})

http.ListenAndServe(":8080", r)

About

Go ind router

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%