Back to cheatsheets
Go
Golang get argument
Get argument in golang.
import
(
"
fmt
"
"
os
"
)
func
main
() {
fmt.
Println
(
len
(os.Args), os.Args)
}