Skip to content

Instantly share code, notes, and snippets.

@zuriby
Created November 11, 2010 12:38
Show Gist options
  • Save zuriby/672425 to your computer and use it in GitHub Desktop.
Save zuriby/672425 to your computer and use it in GitHub Desktop.
def main():
flag.Parse() // Scans the arg list and sets up flags
var s string = ""
for i= 0; i < flag.NArg(); i++:
if i > 0:
s += Space
s += flag.Arg(i)
if !*omitNewline:
s += Newline
os.Stdout.WriteString(s)
func main() {
flag.Parse() // Scans the arg list and sets up flags
var s string = ""
for i := 0; i < flag.NArg(); i++ {
if i > 0 {
s += Space
}
s += flag.Arg(i)
}
if !*omitNewline {
s += Newline
}
os.Stdout.WriteString(s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment