diff options
author | Doug Black <dblack@twilio.com> | 2014-03-29 23:56:38 -0700 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-03-29 23:56:38 -0700 |
commit | 13141fe80cbaf373b86b91a68c61d8ff93a03826 (patch) | |
tree | 857f442d85a32e71c2f85c4afcc83f7600ae76d0 /core.go | |
parent | fix test make target (diff) | |
download | sleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.tar.gz sleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.tar.bz2 sleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.zip |
add some docs for Mux() function
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |