DEV Community


Posted on

How to work with Command Line Arguments and Flags in Golang?

Command Lines arguments are the major or we can say important part of a program if we’re about to hit a feature when running a program to achieve that we uses command line arguments or flag.
For Example: If you’ve ever use any command in Operating System each command holds arguments , like if we’re talk about ls command which helps us to list all the files in a directory but it doesn’t shows us all files. It leaves hidden files and don’t renders those files, But to get hidden files as well we use a flag with the command which is -la. It prints all the files including hidden files as well..
Please Checkout to Know More About Command Line Arguments and Flags.

Discussion (0)