init
This commit is contained in:
commit
f7443bbab9
30 changed files with 271 additions and 0 deletions
BIN
echov1/echo1
Executable file
BIN
echov1/echo1
Executable file
Binary file not shown.
16
echov1/echo1.go
Normal file
16
echov1/echo1.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
//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)
|
||||
}
|
Reference in a new issue