aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-03-30 09:24:41 -0700
committerDoug Black <dblack@twilio.com>2014-03-30 09:24:41 -0700
commit8b633aba12cfbf71c4e0fa6521d3f4f461685ae8 (patch)
treee12002bd66013f1999187b21b60ab62f7a1be027 /core.go
parentadd some docs for Mux() function (diff)
downloadsleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.tar.gz
sleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.tar.bz2
sleepy-8b633aba12cfbf71c4e0fa6521d3f4f461685ae8.zip
s/muxPointer/mux/
Diffstat (limited to 'core.go')
-rw-r--r--core.go8
1 files changed, 4 insertions, 4 deletions
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
}
}
bgstack15