You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
LICENSE.md | 2 years ago | |
README.md | 2 years ago | |
file.go | 2 years ago | |
file_test.go | 2 years ago | |
fileinfo.go | 2 years ago | |
fs.go | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
init.go | 2 years ago | |
models.go | 2 years ago | |
models_test.go | 2 years ago | |
utils.go | 2 years ago | |
utils_test.go | 2 years ago |
README.md
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