This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
go-book/#echo1.go#
Geir Okkenhaug Jerstad f7443bbab9 init
2024-08-13 20:31:39 +02:00

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)
}