Categorygithub.com/gouniverse/filesystem
repositorypackage
0.3.1
Repository: https://github.com/gouniverse/filesystem.git
Documentation: pkg.go.dev

# README

File System

Open in Gitpod

tests Go Report Card PkgGoDev

Usage

storage, err = filesystem.NewStorage(filesystem.Disk{
  DiskName:             "S3",
  Driver:               filesystem.DRIVER_S3,
  Url:                  config.MediaUrl,
  Region:               config.MediaRegion,
  Key:                  config.MediaKey,
  Secret:               config.MediaSecret,
  Bucket:               config.MediaBucket,
  UsePathStyleEndpoint: true,
})

if err != nil {
  return err.Error()
}