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
echov2/echo Executable file

Binary file not shown.

19
echov2/echo.go Normal file
View file

@ -0,0 +1,19 @@
// 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)
}
}

0
echov2/echo.go~ Normal file
View file