News for hackers. Stuff that matters.
Re:How to Use Go Interfaces by sethammons on Monday March 19, 2018 @10:00PM (#16625389)
My real world AWS sdk s3 experience: I have an uploader interface (I only needed to upload). The concrete uploader has the s3 code. The fake uploader has any custom result/err I need to test against.
Re:How to Use Go Interfaces by yup123 on Monday March 19, 2018 @10:47PM (#16625615)
No idea why you’re getting downvotes, seems like a clean way to do this.