diff options
author | Doug Black <dblack@twilio.com> | 2014-01-24 21:25:14 -0800 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-01-24 21:25:14 -0800 |
commit | f8898263262db2665d5b2fa377d5ea06dda79ed1 (patch) | |
tree | 4ba4fb91e986331ee3603c30bc324252abf317bd | |
parent | reorg (diff) | |
download | sleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.tar.gz sleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.tar.bz2 sleepy-f8898263262db2665d5b2fa377d5ea06dda79ed1.zip |
collapse into one type declaration
-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." } - |