command
Version:
v0.0.0-...-c509061
Opens a new window with list of versions in this module.
Published: Mar 11, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Example 3: avoid to walk the stack
This example serves the only purpose to show how inefficient might be to use
the Cmd
call directly in a case
statement.
To run, in a terminal
$ go run main.go
You can then follow the log at /tmp/wrong.log
:
$ tail -f /tmp/wrong.log
Try to follow the suggestion in the code and see what happens.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.