The command line argument can be accessed using the os.Args variables.

For instance:
Package main
import (
  “fmt”
   “OS”
)
func main () {
   fmt.Println(len(os.Args), os.Args)
}

BY Best Interview Question ON 11 Mar 2020