Created
December 4, 2017 22:30
-
-
Save campoy/ac42675c871c7587578f409c4ca13269 to your computer and use it in GitHub Desktop.
Code snippets for https://medium.com/@francesc/whats-the-most-common-identifier-in-go-s-stdlib-e468f3c9c7d9 Raw
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 ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
if len(os.Args) < 2 { | |
fmt.Fprintf(os.Stderr, "usage:\n\t%s [files]\n", os.Args[0]) | |
os.Exit(1) | |
} | |
for _, arg := range os.Args[1:] { | |
fmt.Println(arg) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment