This Go module encapsulates the go-storage library, which makes transparent the storage and retrieval of files to and from a number of both cloud services and local supports. A full list of supported backends can be found in the go-storage README.
It provides 2 functions, one for writing and one for reading. It takes care of the boilerplate.
You need to provide the constructor NewStorage(cnn string) a connection string in the go-storage format:
cnn := "oss://bucket/?credential=env&endpoint=http://127.0.0.1:9090&name=bucket"
Apache-2.0. Please read the LICENSE file.
Copyright (c) 2024 Rodolfo González González.