Camlistore: Android, ARM, App Engine, anywhere.
25 June 2014
Brad Fitzpatrick
Gopher, Google
25 June 2014
Brad Fitzpatrick
Gopher, Google
Stores on:
does:
on:
$ go {get,build,install,test} camlistore.org/{cmd,pkg,server}/...
$ GOARCH=arm GOOS=linux go build camlistore.org/server/camlistored
github.com/davecheney/golang-crosscompile
developers.google.com/appengine/docs/go/reference#Context
pkg.go.dev/camlistore.org/pkg/context
pkg.go.dev/code.google.com/p/go.net/context
// +build !appengine
Definition:
package fileembed func (f *Files) Open(filename string) (http.File, error)
Use in Camlistore:
package server uistatic.Files = &fileembed.Files{ DirFallback: ui.uiDir, Listable: true, // In dev_appserver, allow edit-and-reload without // restarting. In production, though, it's faster to just // slurp it in. SlurpToMemory: uistatic.IsProdAppEngine, }
$ genfileembed ./path/to/dir
$ cmdtool [--global=foo] subcmd [--subcommand opts]
Go is awesome and runs lots of places, easily.
25 June 2014
Brad Fitzpatrick
Gopher, Google