Created
January 30, 2022 17:36
-
-
Save anjanashankar9/a46ddeae94903d01960af3b6db679fec 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
func isFlagPassed(name string) bool { | |
found := false | |
flag.Visit(func(f *flag.Flag) { | |
if f.Name == name { | |
found = true | |
} | |
}) | |
return found | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment