diff options
-rw-r--r-- | http.go | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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." } - |