1.

How will you access command line arguments in a GO program?

Answer»

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



Discussion

No Comment Found