mirror of
https://github.com/pkg/errors.git
synced 2025-05-05 07:00:33 +00:00
14 lines
147 B
Go
14 lines
147 B
Go
package errors_test
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
func ExampleNew() {
|
|
err := errors.New("whoops")
|
|
fmt.Println(err.Error())
|
|
|
|
// Output: whoops
|
|
}
|