package
Version:
v1.72.0
Opens a new window with list of versions in this module.
Published: May 9, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package errtrace provides utilities to annotate errors.
Trace annotates the error message with the filename, line number and function name.
package main
import (
"fmt"
"github.com/Vonage/gosrvlib/pkg/errtrace"
)
func main() {
err := fmt.Errorf("example error")
testErr := errtrace.Trace(err)
fmt.Println(testErr)
}
Output:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.