Created
November 11, 2010 12:38
-
-
Save zuriby/672425 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
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