diff options
| author | Stefan Majewsky <stefan.majewsky@sap.com> | 2021-05-28 13:53:57 +0200 |
|---|---|---|
| committer | Stefan Majewsky <stefan.majewsky@sap.com> | 2021-05-28 13:53:57 +0200 |
| commit | 4caefbba49a5675d39fa87f26a757f8131313598 (patch) | |
| tree | 1f99a3d420ba82e1bcb20794cbfd7de423ad5d40 /README.md | |
| parent | bd1c74594efeab1268531225d304ebae8992e286 (diff) | |
| download | go-schwift-4caefbba49a5675d39fa87f26a757f8131313598.tar.gz | |
doc: extend usage example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -53,7 +53,11 @@ account, err := gopherschwift.Wrap(client, nil) ``` From this point, follow the [API documentation](https://godoc.org/github.com/majewsky/schwift) for what you can do with -the `schwift.Account` object. +the `schwift.Account` object. For example, to download an object's contents into a string: + +``` +text, err := account.Container("foo").Object("bar.txt").Download(nil).AsString() +``` ## Why another Swift client library? |
