performance

command
v0.0.0-...-c509061 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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