mirror of https://github.com/perkeep/perkeep.git
0714a463c9
A lot is still broken, but most stuff at least compiles now. The directory tree has been rearranged now too. Go libraries are now under "pkg". Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign". The go tool cannot yet fetch from arbitrary domains, but discussion is happening now on which mechanism to use to allow that. For now, put the camlistore root under $GOPATH/src. Typically $GOPATH is $HOME, so Camlistore should be at $HOME/src/camlistore.org. Then you can: $ go build ./server/camlistored ... etc The build.pl script is currently disabled. It'll be resurrected at some point, but with a very different role (helping create a fake GOPATH and running the go build command, if things are installed at the wrong place, and/or running fileembed generators). Many things are certainly broken. Many things are disabled. (MySQL, all indexing, etc). Many things need to be moved into camlistore.org/third_party/{code.google.com,github.com} and updated from their r60 to Go 1 versions, where applicable. The GoMySQL stuff should be updated to use database/sql and the ziutek library implementing database/sql/driver. Help wanted. Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde |
||
---|---|---|
.. | ||
LICENSE | ||
README | ||
THANKS | ||
flickr.go | ||
flickr_test.go |
README
=================================================== go-flickr: A interface to Flickr's API in Google Go Author: Nolan Caudill Date: 2011-01-10 License: MIT =================================================== This is a simple wrapper in Go to talk to Flickr. I wrote this mainly as an exercise to learn Go but it is functional. I don't really know Go so if you see something that could be more idiomatic or written better, please let me know! The godoc below is the best place to learn how to use this library. To compile and install: make make install To test: gotest ======================================================================= PACKAGE package flickr import "." TYPES type Error string func (e Error) String() string type Request struct { ApiKey string Method string Args map[string]string } func (request *Request) Execute() (response string, ret os.Error) func (request *Request) Replace(filename string, filetype string) (response string, err os.Error) func (request *Request) Sign(secret string) func (request *Request) URL() string func (request *Request) Upload(filename string, filetype string) (response string, err os.Error) Example: r.Upload("thumb.jpg", "image/jpeg")