Skip to content

Instantly share code, notes, and snippets.

@ShaileshSurya
Created October 20, 2019 07:16
Show Gist options
  • Save ShaileshSurya/f95c4e40ae4279f891959c42da1e1168 to your computer and use it in GitHub Desktop.
Save ShaileshSurya/f95c4e40ae4279f891959c42da1e1168 to your computer and use it in GitHub Desktop.
external dependency
package external
import "fmt"
// DependencyFunction ...
func DependencyFunction() (err error) {
fmt.Println("Hurray Dependency Function is called")
return
}
@ShaileshSurya
Copy link
Author

Created as a part of Medium post "Mocking External Dependencies in Go"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment