In c ++, when creating a function, it was possible to do so int main(int argc, char** argv) , therefore, when starting from the terminal, you can pass arguments. When compiling into GoLang , it says that the main functions cannot have arguments.
How do I pass arguments to an application on golang?
- 7gobyexample.com/command-line-arguments - Mike
- 2or the next article :) gobyexample.com/command-line-flags for full support for the flags - biosckon
|