Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created March 26, 2013 16:58
Show Gist options
  • Save AeroNotix/5247096 to your computer and use it in GitHub Desktop.
Save AeroNotix/5247096 to your computer and use it in GitHub Desktop.
/* hpcloud */
type Account struct {
ObjectStore objectstore
Identity identity
/* Other APIs */
}
func (a Account) CreateContainer(dir string) {
return a.ObjectStore.CreateContainer(a.Token(), dir)
}
/* in hpcloud/objectstore */
type ObjectStore struct {}
func (o ObjectStore) CreateContainer(AuthToken string, whatever...) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment