errtrace

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

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.
-l    list files that would be modified without making any changes.

Jump to

Keyboard shortcuts

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