/** * TestToString */ func TestToString() { Couch = couch.New(nil, false) Client = couch.NewClient(Couch) Client.DoRequest("HEAD /", nil, "", nil) util.Dumpf("Request\n>>\n%s", Client.GetRequest().ToString()) util.Dumpf("Response\n>>\n%s", Client.GetResponse().ToString()) }
func init() { Couch = couch.New(nil, DEBUG) Client = couch.NewClient(Couch) Database = couch.NewDatabase(Client, DBNAME) Document = couch.NewDocument(Database, "_id", DOCID) }
func init() { Couch = couch.New(nil, DEBUG) Client = couch.NewClient(Couch) }
func init() { Couch = couch.New(nil, DEBUG) Client = couch.NewClient(Couch) Database = couch.NewDatabase(Client, DBNAME) }
func init() { Couch = couch.New(nil, DEBUG) Client = couch.NewClient(Couch) Server = couch.NewServer(Client) }