Categorygithub.com/go-ind/router
modulepackage
0.0.6-beta
Repository: https://github.com/go-ind/router.git
Documentation: pkg.go.dev

# README

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)

# Packages

No description provided by the author

# Functions

No description provided by the author
JSONMarshal is func.
No description provided by the author
Output for output to terminal.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Data is data standard output.
No description provided by the author
No description provided by the author
UTCFormatter ...

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author