Reading command line arguments in Go

0

Command-line arguments are a way to supply additional information to a program when it is started. The easiest way to supply command line arguments is by specifying a space separated list of values after the command while running it: $ ./my-program Arg1 Arg2 Arg3 Read Command line arguments in Go In Go, you can access the raw command-line arguments using the os.Args variable. It is a slice and it holds all the command-line arguments starting with the program name.

Read this post on callicoder.com


Rajeev Kumar Singh

blogs from Bangalore