Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Created June 9, 2011 16:53
Show Gist options
  • Save wingyplus/1017171 to your computer and use it in GitHub Desktop.
Save wingyplus/1017171 to your computer and use it in GitHub Desktop.
echo like echo in bash terminal
package main
import (
"os"
"fmt"
)
func main () {
if len (os.Args) > 1 {
s := ""
for i:= 1; i < len (os.Args); i++ {
s += os.Args[i] + " "
}
fmt.Println (s)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment