20 lines
252 B
Go
20 lines
252 B
Go
|
// Echov2 prints its command-line arguments.
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
s, sep := "", ""
|
||
|
for _, arg := range os.Args[1:] {
|
||
|
s += sep + arg
|
||
|
sep = " "
|
||
|
}
|
||
|
fmt.Println(s)
|
||
|
for i, v := range os.Args[1:] {
|
||
|
println(i,v)
|
||
|
}
|
||
|
}
|