package main
import("net/url""github.com/dougblack/sleepy")type Bar struct{}func(b Bar)Get(values url.Values) (int,interface{}) {return200,map[string]string{"hello":"goodbye"}}funcmain() {
bar :=new(Bar)var api =new(sleepy.Api)
api.AddResource(bar,"/bar")
api.Start(3000)}