Documentation ¶
Overview ¶
Sometimes it's useful to specify a flag's default help-text value within the flag declaration The default value can be set via the DefaultText struct field To run this example, open a terminal executing the following lines: $ go install 13-defaultValues.go $ 13-defaultValues Note that port flag shows "default:random" as we defined before in the code
Click to show internal directories.
Click to hide internal directories.