### Example Usage (SDK v1) Source: https://github.com/jszwec/s3fs/blob/main/README.md Demonstrates initializing the s3fs filesystem with AWS SDK v1 and walking through files in an S3 bucket. It requires an AWS session and a bucket name. ```go const bucket = "my-bucket" s, err := session.NewSession() if err != nil { log.Fatal(err) } s3fs := s3fs.New(s3.New(s), bucket) // print out all files in s3 bucket. _ = fs.WalkDir(s3fs, ".", func(path string, d fs.DirEntry, err error) error { if err != nil { return err } if d.IsDir() { fmt.Println("dir:", path) return nil } fmt.Println("file:", path) return nil }) ``` -------------------------------- ### Installation Source: https://github.com/jszwec/s3fs/blob/main/README.md Command to install the s3fs package using Go modules. ```go go get github.com/jszwec/s3fs ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.