August 2019
Beginner to intermediate
798 pages
17h 2m
English
Flags are specially-formatted strings that are passed into a program to control its behavior. Dealing with flags on your own might become very difficult if you want to support multiple flags. Thus, if you are developing UNIX system command-line utilities, you will find the flag package very interesting and useful.
The flag package makes no assumptions about the order of command-line arguments and options, and it prints helpful messages in case there was an error in the way the command-line utility was executed.
I will present two Go programs that use the flag package: a ...
Read now
Unlock full access