SHARE
TWEET

Untitled

a guest Jan 29th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type AmazonWrapperInterface interface {
  2.     ListS3() []string
  3.     EC2Create(string) bool
  4. }
  5.  
  6. type amazonWrapperImpl struct {
  7.     aws *aws.S3
  8. }
  9.  
  10. func NewAmazonWrapper() AmazonWrapperInterface {
  11.     // implement configuration here etc
  12.     return &amazonWrapperImpl{}
  13. }
  14.  
  15. func (a *amazonWrapperImpl) ListS3() []string {
  16.     return a.aws.ListS3()
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top