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

     1  # Example
     2  
     3  sync will upload a given directory to Amazon S3 using the upload iterator interface defined in the
     4  s3manager package. This example uses a path that is specified during runtime to walk and build keys
     5  to upload to Amazon S3. It will use the keys to upload the files/folders to Amazon S3.
     6  
     7  # Usage
     8  
     9  ```sh
    10  sync <params>
    11  	-region <region> // required
    12  	-bucket <bucket> // required
    13  	-path  <path> // required
    14  ```
    15  
    16  ```sh
    17  go run -tags example sync.go
    18  	-region <region> // required
    19  	-bucket <bucket> // required
    20  	-path  <path> // required
    21  ```
    22  
    23  Output:
    24  ```
    25  success
    26  ```