From b77ada9a5a4ae049f2b5f3eff6ca7a66a154f49d Mon Sep 17 00:00:00 2001 From: Doug Black Date: Fri, 24 Jan 2014 07:56:47 -0800 Subject: reorg --- core.go | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index 3ef4029..e0e4a8a 100644 --- a/core.go +++ b/core.go @@ -5,36 +5,12 @@ import ( ) type Resource interface { - Get(p [string][]string) string + Get(map[string][]string) string Post(map[string][]string) string Put(map[string][]string) string Delete(map[string][]string) string } -type GetNotSupported 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." -} - type Route struct { resource Resource path string -- cgit