17 lines
209 B
Plaintext
17 lines
209 B
Plaintext
// Echo1 prints its command-line arguments.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var s, sep string
|
|
for i := 1;i < len(os.Args); i++ {
|
|
s += sep + os.Args[i]
|
|
sep = " "
|
|
}
|
|
fmt.Println(s)
|
|
}
|