This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-13 20:31:39 +02:00
commit f7443bbab9
30 changed files with 271 additions and 0 deletions

BIN
echov1/echo1 Executable file

Binary file not shown.

16
echov1/echo1.go Normal file
View 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)
}