Documentation ¶
Overview ¶
We can make a flag required by serring the Required field as trus If a user does not provide a required flag, they will be shown an error message To run this example, open a terminal and execute the following lines: $ go install 12-requiredFlags.go $ 12-requiredFlags Note, the last line indicating that you must provide a value for "lang" flag
Click to show internal directories.
Click to hide internal directories.