github.com/aavshr/aws-sdk-go@v1.41.3/example/service/s3/getObjectWithProgress/README.md (about)

     1  # Example
     2  
     3  This is an example using the AWS SDK for Go to download an S3 object with a
     4  progress bar.
     5  
     6  # Usage
     7  
     8  The example uses the bucket name provided, one key for object, and output the
     9  progress to stdout.
    10  
    11  ```prompt
    12  AWS_PROFILE=my-profile AWS_REGION=us-west-2 go run -tags example getObjectWithProgress.go cool-bucket my/object/prefix/cool_thing.zip
    13  
    14  2019/02/22 13:04:52 File size is: 35.9 MB
    15  2019/02/22 13:04:53 File size:35943530 downloaded:8580 percentage:0%
    16  2019/02/22 13:04:53 File size:35943530 downloaded:17580 percentage:0%
    17  2019/02/22 13:04:53 File size:35943530 downloaded:33940 percentage:0%
    18  2019/02/22 13:04:53 File size:35943530 downloaded:34988 percentage:0%
    19  2019/02/22 13:04:53 File size:35943530 downloaded:51348 percentage:0%
    20  2019/02/22 13:04:53 File size:35943530 downloaded:52396 percentage:0%
    21  ...
    22  ```