Documentation
¶
Overview ¶
errtrace instruments Go code with error return tracing.
Installation ¶
Install errtrace with:
go install braces.dev/errtrace/cmd/errtrace@latest
Usage ¶
errtrace [options] <source files>
This will transform the source files and write them to the standard output. Use the following flags to control the output:
-format
whether to format ouput; one of: [auto, always, never].
auto is the default and will format if the output is being written to a file.
-w write result to the given source files instead of stdout.
Click to show internal directories.
Click to hide internal directories.