Skip to content

Instantly share code, notes, and snippets.

@campoy
Created December 4, 2017 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campoy/ac42675c871c7587578f409c4ca13269 to your computer and use it in GitHub Desktop.
Save campoy/ac42675c871c7587578f409c4ca13269 to your computer and use it in GitHub Desktop.
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