summaryrefslogtreecommitdiff
path: root/examples/s3/getobject.go
diff options
context:
space:
mode:
authorFélix Sipma <felix+debian@gueux.org>2018-01-05 11:09:44 +0100
committerFélix Sipma <felix+debian@gueux.org>2018-01-05 11:09:44 +0100
commit9aa20edb43ab70f1865d4d1ae680939faa46c8b7 (patch)
tree66742c50531fcce59814c2e55f8fa1f0a2e5463f /examples/s3/getobject.go
parentfd69b3bb0c26856d0938842c0e4e7d3ff959ca3d (diff)
parent2e53196f9027ebb270b9e9a251ad39383a500c8f (diff)
Update upstream source from tag 'upstream/4.0.5'
Update to upstream version '4.0.5' with Debian dir fc9f5488be66217572c92dce9419d3a3fba2cc24
Diffstat (limited to 'examples/s3/getobject.go')
-rw-r--r--examples/s3/getobject.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/s3/getobject.go b/examples/s3/getobject.go
index 96bb855..e17ef81 100644
--- a/examples/s3/getobject.go
+++ b/examples/s3/getobject.go
@@ -1,7 +1,8 @@
// +build ignore
/*
- * Minio Go Library for Amazon S3 Compatible Cloud Storage (C) 2015 Minio, Inc.
+ * Minio Go Library for Amazon S3 Compatible Cloud Storage
+ * Copyright 2015-2017 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +41,7 @@ func main() {
log.Fatalln(err)
}
- reader, err := s3Client.GetObject("my-bucketname", "my-objectname")
+ reader, err := s3Client.GetObject("my-bucketname", "my-objectname", minio.GetObjectOptions{})
if err != nil {
log.Fatalln(err)
}