Skip to content

Instantly share code, notes, and snippets.

@ShaileshSurya
Last active August 9, 2020 06:32
Show Gist options
  • Save ShaileshSurya/4251cdd1c0ac0a140bb683926c0a694c to your computer and use it in GitHub Desktop.
Save ShaileshSurya/4251cdd1c0ac0a140bb683926c0a694c to your computer and use it in GitHub Desktop.
Consuming external Dependecy
package main
import (
"fmt"
"github.com/go-external-mocking/external"
)
func main() {
err := external.DependencyFunction()
if err != nil {
fmt.Println("Error from dependency function.")
}
}
@ShaileshSurya
Copy link
Author

Created as a part of Medium Post.

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