Skip to content

Instantly share code, notes, and snippets.

@ShaileshSurya
Created August 9, 2020 06:50
Show Gist options
  • Save ShaileshSurya/52b235fd6c76f122849a5973d37f7c63 to your computer and use it in GitHub Desktop.
Save ShaileshSurya/52b235fd6c76f122849a5973d37f7c63 to your computer and use it in GitHub Desktop.
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