12-requiredFlags

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: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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