Skip to content

Commit

Permalink
blob/s3blob: Fix example (#3305)
Browse files Browse the repository at this point in the history
  • Loading branch information
vangent authored Aug 21, 2023
1 parent 7298f99 commit 1b4bd15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blob/s3blob/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func ExampleOpenBucket() {
func ExampleOpenBucketV2() {
// PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored.
// PRAGMA: On gocloud.dev, hide lines until the next blank line.
ctx := context.Background()

// Establish a AWS V2 Config.
// See https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/ for more info.
ctx := context.Background()
cfg, err := awsv2cfg.LoadDefaultConfig(ctx)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 1 addition & 0 deletions internal/website/content/howto/blob/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ create an [AWS session][] with the same region as your bucket:
{{< goexample "gocloud.dev/blob/s3blob.ExampleOpenBucketV2" >}}

[`s3blob.OpenBucket`]: https://godoc.org/gocloud.dev/blob/s3blob#OpenBucket
[`s3blob.OpenBucketV2`]: https://godoc.org/gocloud.dev/blob/s3blob#OpenBucketV2
[AWS session]: https://docs.aws.amazon.com/sdk-for-go/api/aws/session/
[S3]: https://aws.amazon.com/s3/

Expand Down
2 changes: 1 addition & 1 deletion internal/website/data/examples.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b4bd15

Please sign in to comment.