Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Pd = common.ConstParams{
Year: 2022,
Logo: "https://cdn.jsdelivr.net/gh/go-chi/chi@master/_examples/chi.svg",
Framework: "Chi",
}
Pd is unchanging parameter data shared between all routes.
Functions ¶
func FileServer ¶
func FileServer(r chi.Router, path string, root http.FileSystem)
FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem. Taken from github.com/go-chi/chi/blob/master/_examples/fileserver/main.go
func RegisterRoutes ¶
func RegisterRoutes()
RegisterRoutes registers all decoupled routes used by servechi. Shared with cmd/exercise. Right now, this func has the same behavior as servestd.RegisterRoutes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.