This content originally appeared on DEV Community and was authored by kuldeep_singh
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.
https://kdsingh4.blogspot.com/2021/10/command-line-arguments-in-golang.html
This content originally appeared on DEV Community and was authored by kuldeep_singh
kuldeep_singh | Sciencx (2021-10-06T06:49:20+00:00) How to work with Command Line Arguments and Flags in Golang?. Retrieved from https://www.scien.cx/2021/10/06/how-to-work-with-command-line-arguments-and-flags-in-golang/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.