Skip to content

Commit d5a0720

Browse files
authored
Remove archived package (Nov 30, 2021) (#184)
Signed-off-by: Arrobo, Gabriel <[email protected]>
1 parent ed7d67f commit d5a0720

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1-dev
1+
1.5.1

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ require (
77
github.com/evanphx/json-patch v5.9.11+incompatible
88
github.com/gin-gonic/gin v1.10.1
99
github.com/mitchellh/mapstructure v1.5.0
10-
github.com/pkg/errors v0.9.1
1110
github.com/smartystreets/goconvey v1.8.1
1211
github.com/stretchr/testify v1.11.1
1312
go.mongodb.org/mongo-driver v1.17.4

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8
6767
github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
6868
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
6969
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
70-
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
71-
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
7270
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
7371
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7472
github.com/smarty/assertions v1.15.0 h1:cR//PqUBUiQRakZWqBiFFQ9wb8emQGDb0HeGdqGByCY=

http2_util/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"os"
1515
"time"
1616

17-
"github.com/pkg/errors"
1817
"golang.org/x/net/http2"
1918
"golang.org/x/net/http2/h2c"
2019
)
@@ -24,7 +23,7 @@ import (
2423
// **it still returns server instance** but without the secret log and error indication
2524
func NewServer(bindAddr string, preMasterSecretLogPath string, handler http.Handler) (server *http.Server, err error) {
2625
if handler == nil {
27-
return nil, errors.New("server needs handler to handle request")
26+
return nil, fmt.Errorf("server needs handler to handle request")
2827
}
2928

3029
h2Server := &http2.Server{

http2_util/server_debug.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ package http2_util
99

1010
import (
1111
"crypto/tls"
12+
"fmt"
1213
"net/http"
1314
"os"
14-
15-
"github.com/pkg/errors"
1615
)
1716

1817
type ZeroSource struct{}
@@ -30,7 +29,7 @@ func NewServer(bindAddr string, tlskeylog string, handler http.Handler) (server
3029
return nil, err
3130
}
3231
if handler == nil {
33-
return nil, errors.New("server need handler")
32+
return nil, fmt.Errorf("server need handler")
3433
}
3534
server = &http.Server{
3635
Addr: bindAddr,

httpwrapper/httpwrapper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"os"
1313
"time"
1414

15-
"github.com/pkg/errors"
1615
"golang.org/x/net/http2"
1716
"golang.org/x/net/http2/h2c"
1817
)
@@ -54,7 +53,7 @@ func NewResponse(code int, h http.Header, body interface{}) *Response {
5453
// **it still returns server instance** but without the secret log and error indication
5554
func NewHttp2Server(bindAddr string, preMasterSecretLogPath string, handler http.Handler) (*http.Server, error) {
5655
if handler == nil {
57-
return nil, errors.New("server needs handler to handle request")
56+
return nil, fmt.Errorf("server needs handler to handle request")
5857
}
5958

6059
h2Server := &http2.Server{

0 commit comments

Comments
 (0)