Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.33 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement