fix lint temp
This commit is contained in:
parent
4c4fdf496e
commit
84fa2ccd9a
@ -22,7 +22,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ClientOption func(client *Client)
|
type ClientOption func(client *Client)
|
||||||
type BeegoHttpRequestOption func(request *BeegoHTTPRequest)
|
type BeegoHTTPRequestOption func(request *BeegoHTTPRequest)
|
||||||
|
|
||||||
// WithEnableCookie will enable cookie in all subsequent request
|
// WithEnableCookie will enable cookie in all subsequent request
|
||||||
func WithEnableCookie(enable bool) ClientOption {
|
func WithEnableCookie(enable bool) ClientOption {
|
||||||
@ -83,28 +83,28 @@ func WithEnableGzip(enable bool) ClientOption {
|
|||||||
// BeegoHttpRequestOption
|
// BeegoHttpRequestOption
|
||||||
|
|
||||||
// WithTimeout sets connect time out and read-write time out for BeegoRequest.
|
// WithTimeout sets connect time out and read-write time out for BeegoRequest.
|
||||||
func WithTimeout(connectTimeout, readWriteTimeout time.Duration) BeegoHttpRequestOption {
|
func WithTimeout(connectTimeout, readWriteTimeout time.Duration) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.SetTimeout(connectTimeout, readWriteTimeout)
|
request.SetTimeout(connectTimeout, readWriteTimeout)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithHeader adds header item string in request.
|
// WithHeader adds header item string in request.
|
||||||
func WithHeader(key, value string) BeegoHttpRequestOption {
|
func WithHeader(key, value string) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.Header(key, value)
|
request.Header(key, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithCookie adds a cookie to the request.
|
// WithCookie adds a cookie to the request.
|
||||||
func WithCookie(cookie *http.Cookie) BeegoHttpRequestOption {
|
func WithCookie(cookie *http.Cookie) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.Header("Cookie", cookie.String())
|
request.Header("Cookie", cookie.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Withtokenfactory adds a custom function to set Authorization
|
// Withtokenfactory adds a custom function to set Authorization
|
||||||
func WithTokenFactory(tokenFactory func() string) BeegoHttpRequestOption {
|
func WithTokenFactory(tokenFactory func() string) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
t := tokenFactory()
|
t := tokenFactory()
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ func WithTokenFactory(tokenFactory func() string) BeegoHttpRequestOption {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WithBasicAuth adds a custom function to set basic auth
|
// WithBasicAuth adds a custom function to set basic auth
|
||||||
func WithBasicAuth(basicAuth func() (string, string)) BeegoHttpRequestOption {
|
func WithBasicAuth(basicAuth func() (string, string)) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
username, password := basicAuth()
|
username, password := basicAuth()
|
||||||
request.SetBasicAuth(username, password)
|
request.SetBasicAuth(username, password)
|
||||||
@ -121,21 +121,21 @@ func WithBasicAuth(basicAuth func() (string, string)) BeegoHttpRequestOption {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WithFilters will use the filter as the invocation filters
|
// WithFilters will use the filter as the invocation filters
|
||||||
func WithFilters(fcs ...FilterChain) BeegoHttpRequestOption {
|
func WithFilters(fcs ...FilterChain) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.SetFilters(fcs...)
|
request.SetFilters(fcs...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithContentType adds ContentType in header
|
// WithContentType adds ContentType in header
|
||||||
func WithContentType(contentType string) BeegoHttpRequestOption {
|
func WithContentType(contentType string) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.Header(contentTypeKey, contentType)
|
request.Header(contentTypeKey, contentType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithParam adds query param in to request.
|
// WithParam adds query param in to request.
|
||||||
func WithParam(key, value string) BeegoHttpRequestOption {
|
func WithParam(key, value string) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.Param(key, value)
|
request.Param(key, value)
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ func WithParam(key, value string) BeegoHttpRequestOption {
|
|||||||
// default is 0 (never retry)
|
// default is 0 (never retry)
|
||||||
// -1 retry indefinitely (forever)
|
// -1 retry indefinitely (forever)
|
||||||
// Other numbers specify the exact retry amount
|
// Other numbers specify the exact retry amount
|
||||||
func WithRetry(times int, delay time.Duration) BeegoHttpRequestOption {
|
func WithRetry(times int, delay time.Duration) BeegoHTTPRequestOption {
|
||||||
return func(request *BeegoHTTPRequest) {
|
return func(request *BeegoHTTPRequest) {
|
||||||
request.Retries(times)
|
request.Retries(times)
|
||||||
request.RetryDelay(delay)
|
request.RetryDelay(delay)
|
||||||
|
|||||||
@ -25,29 +25,29 @@ import (
|
|||||||
type Client struct {
|
type Client struct {
|
||||||
Name string
|
Name string
|
||||||
Endpoint string
|
Endpoint string
|
||||||
CommonOpts []BeegoHttpRequestOption
|
CommonOpts []BeegoHTTPRequestOption
|
||||||
|
|
||||||
Setting BeegoHTTPSettings
|
Setting BeegoHTTPSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
// HttpResponseCarrier If value implement HttpResponseCarrier. http.Response will pass to SetHttpResponse
|
// HTTPResponseCarrier If value implement HTTPResponseCarrier. http.Response will pass to SetHttpResponse
|
||||||
type HttpResponseCarrier interface {
|
type HTTPResponseCarrier interface {
|
||||||
SetHttpResponse(resp *http.Response)
|
SetHttpResponse(resp *http.Response)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HttpBodyCarrier If value implement HttpBodyCarrier. http.Response.Body will pass to SetReader
|
// HTTPBodyCarrier If value implement HTTPBodyCarrier. http.Response.Body will pass to SetReader
|
||||||
type HttpBodyCarrier interface {
|
type HTTPBodyCarrier interface {
|
||||||
SetReader(r io.ReadCloser)
|
SetReader(r io.ReadCloser)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HttpBytesCarrier If value implement HttpBytesCarrier.
|
// HTTPBytesCarrier If value implement HTTPBytesCarrier.
|
||||||
// All the byte in http.Response.Body will pass to SetBytes
|
// All the byte in http.Response.Body will pass to SetBytes
|
||||||
type HttpBytesCarrier interface {
|
type HTTPBytesCarrier interface {
|
||||||
SetBytes(bytes []byte)
|
SetBytes(bytes []byte)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HttpStatusCarrier If value implement HttpStatusCarrier. http.Response.StatusCode will pass to SetStatusCode
|
// HTTPStatusCarrier If value implement HTTPStatusCarrier. http.Response.StatusCode will pass to SetStatusCode
|
||||||
type HttpStatusCarrier interface {
|
type HTTPStatusCarrier interface {
|
||||||
SetStatusCode(status int)
|
SetStatusCode(status int)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ func NewClient(name string, endpoint string, opts ...ClientOption) (*Client, err
|
|||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) customReq(req *BeegoHTTPRequest, opts []BeegoHttpRequestOption) {
|
func (c *Client) customReq(req *BeegoHTTPRequest, opts []BeegoHTTPRequestOption) {
|
||||||
req.Setting(c.Setting)
|
req.Setting(c.Setting)
|
||||||
opts = append(c.CommonOpts, opts...)
|
opts = append(c.CommonOpts, opts...)
|
||||||
for _, o := range opts {
|
for _, o := range opts {
|
||||||
@ -98,7 +98,7 @@ func (c *Client) handleCarrier(value interface{}, req *BeegoHTTPRequest) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if carrier, ok := value.(HttpResponseCarrier); ok {
|
if carrier, ok := value.(HTTPResponseCarrier); ok {
|
||||||
b, err := req.Bytes()
|
b, err := req.Bytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -106,7 +106,7 @@ func (c *Client) handleCarrier(value interface{}, req *BeegoHTTPRequest) error {
|
|||||||
resp.Body = ioutil.NopCloser(bytes.NewReader(b))
|
resp.Body = ioutil.NopCloser(bytes.NewReader(b))
|
||||||
carrier.SetHttpResponse(resp)
|
carrier.SetHttpResponse(resp)
|
||||||
}
|
}
|
||||||
if carrier, ok := value.(HttpBodyCarrier); ok {
|
if carrier, ok := value.(HTTPBodyCarrier); ok {
|
||||||
b, err := req.Bytes()
|
b, err := req.Bytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -114,14 +114,14 @@ func (c *Client) handleCarrier(value interface{}, req *BeegoHTTPRequest) error {
|
|||||||
reader := ioutil.NopCloser(bytes.NewReader(b))
|
reader := ioutil.NopCloser(bytes.NewReader(b))
|
||||||
carrier.SetReader(reader)
|
carrier.SetReader(reader)
|
||||||
}
|
}
|
||||||
if carrier, ok := value.(HttpBytesCarrier); ok {
|
if carrier, ok := value.(HTTPBytesCarrier); ok {
|
||||||
b, err := req.Bytes()
|
b, err := req.Bytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
carrier.SetBytes(b)
|
carrier.SetBytes(b)
|
||||||
}
|
}
|
||||||
if carrier, ok := value.(HttpStatusCarrier); ok {
|
if carrier, ok := value.(HTTPStatusCarrier); ok {
|
||||||
carrier.SetStatusCode(resp.StatusCode)
|
carrier.SetStatusCode(resp.StatusCode)
|
||||||
}
|
}
|
||||||
if carrier, ok := value.(HttpHeadersCarrier); ok {
|
if carrier, ok := value.(HttpHeadersCarrier); ok {
|
||||||
@ -131,14 +131,14 @@ func (c *Client) handleCarrier(value interface{}, req *BeegoHTTPRequest) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get Send a GET request and try to give its result value
|
// Get Send a GET request and try to give its result value
|
||||||
func (c *Client) Get(value interface{}, path string, opts ...BeegoHttpRequestOption) error {
|
func (c *Client) Get(value interface{}, path string, opts ...BeegoHTTPRequestOption) error {
|
||||||
req := Get(c.Endpoint + path)
|
req := Get(c.Endpoint + path)
|
||||||
c.customReq(req, opts)
|
c.customReq(req, opts)
|
||||||
return c.handleResponse(value, req)
|
return c.handleResponse(value, req)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Post Send a POST request and try to give its result value
|
// Post Send a POST request and try to give its result value
|
||||||
func (c *Client) Post(value interface{}, path string, body interface{}, opts ...BeegoHttpRequestOption) error {
|
func (c *Client) Post(value interface{}, path string, body interface{}, opts ...BeegoHTTPRequestOption) error {
|
||||||
req := Post(c.Endpoint + path)
|
req := Post(c.Endpoint + path)
|
||||||
c.customReq(req, opts)
|
c.customReq(req, opts)
|
||||||
if body != nil {
|
if body != nil {
|
||||||
@ -148,7 +148,7 @@ func (c *Client) Post(value interface{}, path string, body interface{}, opts ...
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Put Send a Put request and try to give its result value
|
// Put Send a Put request and try to give its result value
|
||||||
func (c *Client) Put(value interface{}, path string, body interface{}, opts ...BeegoHttpRequestOption) error {
|
func (c *Client) Put(value interface{}, path string, body interface{}, opts ...BeegoHTTPRequestOption) error {
|
||||||
req := Put(c.Endpoint + path)
|
req := Put(c.Endpoint + path)
|
||||||
c.customReq(req, opts)
|
c.customReq(req, opts)
|
||||||
if body != nil {
|
if body != nil {
|
||||||
@ -158,14 +158,14 @@ func (c *Client) Put(value interface{}, path string, body interface{}, opts ...B
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete Send a Delete request and try to give its result value
|
// Delete Send a Delete request and try to give its result value
|
||||||
func (c *Client) Delete(value interface{}, path string, opts ...BeegoHttpRequestOption) error {
|
func (c *Client) Delete(value interface{}, path string, opts ...BeegoHTTPRequestOption) error {
|
||||||
req := Delete(c.Endpoint + path)
|
req := Delete(c.Endpoint + path)
|
||||||
c.customReq(req, opts)
|
c.customReq(req, opts)
|
||||||
return c.handleResponse(value, req)
|
return c.handleResponse(value, req)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Head Send a Head request and try to give its result value
|
// Head Send a Head request and try to give its result value
|
||||||
func (c *Client) Head(value interface{}, path string, opts ...BeegoHttpRequestOption) error {
|
func (c *Client) Head(value interface{}, path string, opts ...BeegoHTTPRequestOption) error {
|
||||||
req := Head(c.Endpoint + path)
|
req := Head(c.Endpoint + path)
|
||||||
c.customReq(req, opts)
|
c.customReq(req, opts)
|
||||||
return c.handleResponse(value, req)
|
return c.handleResponse(value, req)
|
||||||
|
|||||||
@ -124,7 +124,6 @@ type BeegoHTTPRequest struct {
|
|||||||
setting BeegoHTTPSettings
|
setting BeegoHTTPSettings
|
||||||
resp *http.Response
|
resp *http.Response
|
||||||
body []byte
|
body []byte
|
||||||
dump []byte
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRequest returns the request object
|
// GetRequest returns the request object
|
||||||
@ -199,7 +198,7 @@ func (b *BeegoHTTPRequest) SetHost(host string) *BeegoHTTPRequest {
|
|||||||
// SetProtocolVersion sets the protocol version for incoming requests.
|
// SetProtocolVersion sets the protocol version for incoming requests.
|
||||||
// Client requests always use HTTP/1.1
|
// Client requests always use HTTP/1.1
|
||||||
func (b *BeegoHTTPRequest) SetProtocolVersion(vers string) *BeegoHTTPRequest {
|
func (b *BeegoHTTPRequest) SetProtocolVersion(vers string) *BeegoHTTPRequest {
|
||||||
if len(vers) == 0 {
|
if vers == "" {
|
||||||
vers = "HTTP/1.1"
|
vers = "HTTP/1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -511,9 +510,8 @@ func (b *BeegoHTTPRequest) buildTrans() http.RoundTripper {
|
|||||||
DialContext: TimeoutDialerCtx(b.setting.ConnectTimeout, b.setting.ReadWriteTimeout),
|
DialContext: TimeoutDialerCtx(b.setting.ConnectTimeout, b.setting.ReadWriteTimeout),
|
||||||
MaxIdleConnsPerHost: 100,
|
MaxIdleConnsPerHost: 100,
|
||||||
}
|
}
|
||||||
} else {
|
} else if t, ok := trans.(*http.Transport); ok {
|
||||||
// if b.transport is *http.Transport then set the settings.
|
// if b.transport is *http.Transport then set the settings.
|
||||||
if t, ok := trans.(*http.Transport); ok {
|
|
||||||
if t.TLSClientConfig == nil {
|
if t.TLSClientConfig == nil {
|
||||||
t.TLSClientConfig = b.setting.TLSClientConfig
|
t.TLSClientConfig = b.setting.TLSClientConfig
|
||||||
}
|
}
|
||||||
@ -524,7 +522,6 @@ func (b *BeegoHTTPRequest) buildTrans() http.RoundTripper {
|
|||||||
t.DialContext = TimeoutDialerCtx(b.setting.ConnectTimeout, b.setting.ReadWriteTimeout)
|
t.DialContext = TimeoutDialerCtx(b.setting.ConnectTimeout, b.setting.ReadWriteTimeout)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return trans
|
return trans
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ func NewSimpleCondition(path string, opts ...simpleConditionOption) *SimpleCondi
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (sc *SimpleCondition) Match(ctx context.Context, req *httplib.BeegoHTTPRequest) bool {
|
func (sc *SimpleCondition) Match(ctx context.Context, req *httplib.BeegoHTTPRequest) bool {
|
||||||
res := true
|
var res bool
|
||||||
if len(sc.path) > 0 {
|
if len(sc.path) > 0 {
|
||||||
res = sc.matchPath(ctx, req)
|
res = sc.matchPath(ctx, req)
|
||||||
} else if len(sc.pathReg) > 0 {
|
} else if len(sc.pathReg) > 0 {
|
||||||
|
|||||||
1
go.mod
1
go.mod
@ -37,4 +37,5 @@ require (
|
|||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
|
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
|
||||||
google.golang.org/grpc v1.37.1
|
google.golang.org/grpc v1.37.1
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
gopkg.in/yaml.v2 v2.4.0
|
||||||
|
mvdan.cc/gofumpt v0.1.1 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
6
go.sum
6
go.sum
@ -333,6 +333,7 @@ github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqn
|
|||||||
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
||||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
|
github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||||
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
|
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
|
||||||
@ -427,6 +428,8 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB
|
|||||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.4.0 h1:8pl+sMODzuvGJkmj2W4kZihvVb5mKm8pB/X44PIQHv8=
|
||||||
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
@ -512,6 +515,7 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn
|
|||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
@ -589,6 +593,8 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
|
|||||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=
|
honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=
|
||||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
|
mvdan.cc/gofumpt v0.1.1 h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA=
|
||||||
|
mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48=
|
||||||
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
||||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
||||||
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
|
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user