mirror of
https://github.com/rjNemo/go-microservices-tuto
synced 2026-06-06 02:16:46 +00:00
9 lines
220 B
Go
9 lines
220 B
Go
package files
|
|
|
|
import "io"
|
|
|
|
// Storage defines the behavior for file operations
|
|
// Implementations may be of the time local disk, or cloud storage, etc
|
|
type Storage interface {
|
|
Save(path string, file io.Reader) error
|
|
}
|