diff options
author | Doug Black <dblack@twilio.com> | 2014-03-30 09:24:41 -0700 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-03-30 09:24:41 -0700 |
commit | 8b633aba12cfbf71c4e0fa6521d3f4f461685ae8 (patch) | |
tree | e12002bd66013f1999187b21b60ab62f7a1be027 | |
parent | add some docs for Mux() function (diff) | |
download | sleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.tar.gz sleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.tar.bz2 sleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.zip |
s/muxPointer/mux/
-rw-r--r-- | core.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -46,7 +46,7 @@ type DeleteSupported interface { // You can instantiate multiple APIs on separate ports. Each API // will manage its own set of resources. type API struct { - muxPointer *http.ServeMux + mux *http.ServeMux muxInitialized bool } @@ -110,11 +110,11 @@ func (api *API) requestHandler(resource interface{}) http.HandlerFunc { // does not yet exist, a new one will be created and returned. func (api *API) Mux() *http.ServeMux { if api.muxInitialized { - return api.muxPointer + return api.mux } else { - api.muxPointer = http.NewServeMux() + api.mux = http.NewServeMux() api.muxInitialized = true - return api.muxPointer + return api.mux } } |