aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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