github.com/maki-daisuke/go-argvreader (go): Package argvreader makes it a bit less painful to write filter programs in Go especially for Perl programmers.  The `argvreader.Reader` behaves just like Perl's `<ARGV>`, that reads lines from one file after another if file list is given in command line arguments, reads from STDIN otherwise. This may be useful to implement UNIX-style filter command, like gzip or grep.  Example  Then, in your command line:  This reads lines from foo, bar and baz one after another. If no argument is given:  This reads lines from STDIN instead.  You can pass file list manually, of course:
Keywords: argv|command-line|cui|go|golang