aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-01-24 21:25:14 -0800
committerDoug Black <dblack@twilio.com>2014-01-24 21:25:14 -0800
commitf8898263262db2665d5b2fa377d5ea06dda79ed1 (patch)
tree4ba4fb91e986331ee3603c30bc324252abf317bd
parentreorg (diff)
downloadsleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.tar.gz
sleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.tar.bz2
sleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.zip
collapse into one type declaration
-rw-r--r--http.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/http.go b/http.go
index 712a080..c02c123 100644
--- a/http.go
+++ b/http.go
@@ -1,26 +1,24 @@
package sleepy
-type GetNotSupported struct{}
+type (
+ GetNotSupported struct {}
+ PostNotSupported struct {}
+ PutNotSupported struct {}
+ DeleteNotSupported struct {}
+)
func (GetNotSupported) Get(map[string][]string) string {
return "Nope."
}
-type PostNotSupported struct{}
-
func (PostNotSupported) Post(map[string][]string) string {
return "Nope."
}
-type PutNotSupported struct{}
-
func (PutNotSupported) Put(map[string][]string) string {
return "Nope."
}
-type DeleteNotSupported struct{}
-
func (DeleteNotSupported) Delete(map[string][]string) string {
return "Nope."
}
-
bgstack15