amazon web services – How do I write unit test with aws-sdk-go-v2?

aws-sdk-go-v1

clients.go

play.golang.org/p/iZxKInQ1CyR

eventHandler_test.go

play.golang.org/p/uOaUxmcCHI0

With the old sdk there are enough example out there and was able to easily implement and test this but since we are migrating to go aws sdk 2 the same concept cant be applied

aws-sdk-go-v2

clients.go

play.golang.org/p/uP6DhCBgzBq

eventHandler_test.go

?

How do I mock multiple aws services and test a service written with the new AWS SDK for Go V2 ?

Read more here: Source link