From 8b633aba12cfbf71c4e0fa6521d3f4f461685ae8 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sun, 30 Mar 2014 09:24:41 -0700 Subject: s/muxPointer/mux/ --- core.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index bdc4499..3aa0c7c 100644 --- a/core.go +++ b/core.go @@ -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 } } -- cgit