Created
August 9, 2020 06:50
-
-
Save ShaileshSurya/52b235fd6c76f122849a5973d37f7c63 to your computer and use it in GitHub Desktop.
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 ( | |
"flag" | |
"fmt" | |
factory "github.com/ShaileshSurya/go-external-mocking/dependfactory" | |
) | |
func main() { | |
env := flag.String("env", "dev", "Environment Test Or Development") | |
flag.Parse() | |
external := factory.GetExternal(*env) | |
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