mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:53:43 +08:00
17 lines
213 B
Go
17 lines
213 B
Go
// os_args.go
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func main() {
|
|
who := "Alice "
|
|
if len(os.Args) > 1 {
|
|
who += strings.Join(os.Args[1:], " ")
|
|
}
|
|
fmt.Println("Good Morning", who)
|
|
}
|