Stubbing AWS Service calls in Golang
Xebia
AUGUST 15, 2023
But I am also a big fan of test driven development. Client } func New() (*Lambda, error) { cfg, err := config.LoadDefaultConfig(context.TODO()) m := new(Lambda) m.SetS3Client(s3.NewFromConfig(cfg)) NewFromConfig(cfg)) return m, err } func (x *Lambda) SetS3Client(client *s3.Client) PutObjectInput) (*s3.PutObjectOutput,
Let's personalize your content