Created
July 17, 2013 10:54
-
-
Save rbanffy/6019557 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 start string | |
func init() { | |
flag.StringVar(&start, "start", "", "time to start") | |
flag.Parse() | |
} | |
func main() { | |
fmt.Println("start is ", start) | |
fmt.Println("Other args below") | |
for i, arg := range flag.Args() { | |
fmt.Println(i, arg) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment