Skip to content

Commit

Permalink
Merge pull request #731 from JessevGool/issue723
Browse files Browse the repository at this point in the history
remove pkg dependency
  • Loading branch information
kung-foo authored Jun 13, 2024
2 parents 1ffb7f9 + 2c9dfdf commit 708f669
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
11 changes: 5 additions & 6 deletions errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ package errors

import (
"errors"

pkg_errors "github.com/pkg/errors"
"fmt"
)

// Prefix is the default error string prefix
const Prefix = "opcua: "

// Errorf wraps github.com/pig/errors#Errorf`
// Errorf wraps fmt.Errorf
func Errorf(format string, a ...interface{}) error {
return pkg_errors.Errorf(Prefix+format, a...)
return fmt.Errorf(Prefix+format, a...)
}

// New wraps github.com/pkg/errors#New
// New wraps errors.New
func New(text string) error {
return pkg_errors.New(Prefix + text)
return errors.New(Prefix + text)
}

// Is wraps errors.Is
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.20

require (
github.com/pascaldekloe/goe v0.1.1
github.com/pkg/errors v0.9.1
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
golang.org/x/term v0.8.0
)
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
github.com/pascaldekloe/goe v0.1.1 h1:Ah6WQ56rZONR3RW3qWa2NCZ6JAVvSpUcoLBaOmYFt9Q=
github.com/pascaldekloe/goe v0.1.1/go.mod h1:KSyfaxQOh0HZPjDP1FL/kFtbqYqrALJTaMafFUIccqU=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
Expand Down

0 comments on commit 708f669

Please sign in to comment.