AWS SDK - Go (Golang)
Preparation
Development Examples
Install the S3 client
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/s3"
)
func main() {
s3Config := aws.Config{
Credentials: credentials.NewStaticCredentials("4EVERLAND-Bucket-APIKey", "4EVERLAND-Bucket-APISecret", ""),
Endpoint: aws.String("https://endpoint.4everland.co"),
Region: aws.String("4everland"),
}Create a bucket
Upload a file
To retrieve the bucket and file list
Requesting IPFS CID and Arweave Hash
Last updated