Last active
August 9, 2020 06:32
-
-
Save ShaileshSurya/4251cdd1c0ac0a140bb683926c0a694c to your computer and use it in GitHub Desktop.
Consuming external Dependecy
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 main | |
import ( | |
"fmt" | |
"github.com/go-external-mocking/external" | |
) | |
func main() { | |
err := external.DependencyFunction() | |
if err != nil { | |
fmt.Println("Error from dependency function.") | |
} | |
} |
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.