Created
July 23, 2019 23:00
-
-
Save nileshsimaria/0dc94681a6b50d69fbd6ef1eea73ba50 to your computer and use it in GitHub Desktop.
This file contains hidden or 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" | |
) | |
var ( | |
file = flag.String("file", "", "file-name") | |
count = flag.Int("count", 2, "count params") | |
repeat = flag.Bool("repeat", false, "Repeat execution") | |
) | |
func main() { | |
flag.Parse() | |
fmt.Println("file name: ", *file) | |
fmt.Println("count: ", *count) | |
fmt.Println("repeat: ", *repeat) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment