S3FS
s3fs is a Go http.FileSystem implementation for AWS S3.
Usage
This Go module can be used directly with http.FileSystem
, for example
// Create a new s3fs with bucket and prefix.
fs, err := s3fs.New(bucket, prefix)
if err != nil {
// handle error
}
// Add handler for "/"
http.Handle("/", http.StripPrefix("/", http.FileServer(fs)))
LICENSE
MIT