~samwhited/mux

38594d64513538e3f0f2d93ff1fbf14c6bb2468b — Sam Whited 1 year, 1 month ago 29b20e9
mux: fix code in package level docs
1 files changed, 3 insertions(+), 3 deletions(-)

M mux.go
M mux.go => mux.go +3 -3
@@ 5,9 5,9 @@
// include typed path parameters and wildcards (see "URL Parameters").
//
//	m := mux.New(
//		mux.HandleFunc(http.MethodGet, "/profile/{username string}", http.NotFoundHandler())
//		mux.HandleFunc(http.MethodGet, "/profile", http.RedirectHandler("/profile/me", http.StatusPermanentRedirect))
//		mux.HandleFunc(http.MethodPost, "/logout", logoutHandler())
//		mux.Handle(http.MethodGet, "/profile/{username string}", http.NotFoundHandler()),
//		mux.HandleFunc(http.MethodGet, "/profile", http.RedirectHandler("/profile/me", http.StatusPermanentRedirect)),
//		mux.Handle(http.MethodPost, "/logout", logoutHandler()),
//	)
//
// URL Parameters