Exemple #1
0
func NewFromEnv() *Client {
	cl := &Client{
		Client: aws.NewFromEnv(),
	}
	if reg := os.Getenv("AWS_DEFAULT_REGION"); reg != "" {
		cl.CustomEndpointHost = "s3-" + reg + ".amazonaws.com"
	}
	return cl
}
func NewFromEnv() *Client {
	return &Client{
		Client: aws.NewFromEnv(),
	}
}