// Example 1: Creating a new error with a stack trace err := errors.New("Something went wrong") formattedError := probe.NewError(err) // Example 2: Logging an error with a stack trace err := doSomething() if err != nil { log.Println(probe.NewError(err)) } // Example 3: Printing an error with a stack trace err := doSomething() if err != nil { fmt.Println(probe.NewError(err)) }In the first example, a new error is created with a stack trace using the `NewError` function from the `probe` package. This error can then be printed or logged for debugging purposes. In the second example, an error is returned from a function and then logged using `NewError`. This will display the stack trace in addition to the error message. In the third example, an error is also returned from a function but is printed to the console instead. The `NewError` function is used to attach the stack trace to the error message.