13-defaultValues

command
v0.0.0-...-497d84b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: Unlicense Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL