March 2020
Intermediate to advanced
406 pages
8h 39m
English
Now that we have instantiated all of our functionality, we can see our new code in action.
If we invoke our new main.go without any optional parameters, we will just see the date return that we defined in our initial DateCommand run block, as shown in the following code output:

If we add additional flags to our input, we can gather verbose information and change the Author of the package using command-line flags, as follows:

We can also view the subcommand that we created for licensing by adding it as a parameter, ...
Read now
Unlock full access