Last active
August 9, 2020 06:22
-
-
Save ShaileshSurya/bafd042305c2a626650d79064ae39bf1 to your computer and use it in GitHub Desktop.
Interface encapsulating external dependency.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interfacer | |
// External interface encaspulates the actual dependency function. | |
type External interface { | |
DependencyFunction() (err error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created as a part of Medium post "Mocking External Dependencies in Go"