From 13141fe80cbaf373b86b91a68c61d8ff93a03826 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sat, 29 Mar 2014 23:56:38 -0700 Subject: add some docs for Mux() function --- core.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core.go b/core.go index f6dd6a7..bdc4499 100644 --- a/core.go +++ b/core.go @@ -106,7 +106,8 @@ func (api *API) requestHandler(resource interface{}) http.HandlerFunc { } } -// singleton mux +// Mux returns the http.ServeMux used by an API. If a ServeMux has +// does not yet exist, a new one will be created and returned. func (api *API) Mux() *http.ServeMux { if api.muxInitialized { return api.muxPointer -- cgit