- Go Standard Library Cookbook
- Radomír Sohlich
- 50字
- 2021-06-24 18:56:24
There's more…
If the arguments are defined as flags, -flag value, additional logic is needed to assign the value to the flag. In this case, there is a better way to parse these by using the flag package. This approach is part of the next recipe.