From f8898263262db2665d5b2fa377d5ea06dda79ed1 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Fri, 24 Jan 2014 21:25:14 -0800 Subject: collapse into one type declaration --- http.go | 14 ++++++-------- 1 file 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." } - -- cgit