-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(godocfx): include README in output (#2927)
I also changed the return type of parse to be a result type to simplify passing the... results around. Related to googleapis/doc-pipeline#39.
- Loading branch information
Showing
5 changed files
with
114 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Cloud Storage [![GoDoc](https://godoc.org/cloud.google.com/go/storage?status.svg)](https://godoc.org/cloud.google.com/go/storage) | ||
|
||
- [About Cloud Storage](https://cloud.google.com/storage/) | ||
- [API documentation](https://cloud.google.com/storage/docs) | ||
- [Go client documentation](https://godoc.org/cloud.google.com/go/storage) | ||
- [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/storage) | ||
|
||
### Example Usage | ||
|
||
First create a `storage.Client` to use throughout your application: | ||
|
||
[snip]:# (storage-1) | ||
```go | ||
client, err := storage.NewClient(ctx) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
``` | ||
|
||
[snip]:# (storage-2) | ||
```go | ||
// Read the object1 from bucket. | ||
rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
defer rc.Close() | ||
body, err := ioutil.ReadAll(rc) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
### YamlMime:TableOfContent | ||
- uid: cloud.google.com/go/storage | ||
name: cloud.google.com/go/storage | ||
items: | ||
- name: README | ||
href: README.md |