See how Boundary would look with gofumpt applied (#853)

* See how Boundary would look with https://github.com/mvdan/gofumpt applied

Results of running `gofumpt -w -s .`

* Update tools file and Makefile for gofumpt

Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
Michael GaffneyandJeff Mitchell authored and GitHub committed 2021-01-07 10:02:32 -05:00
1 parent cca0fbea2b
commit 94cb79bbdd
237 files changed
+1567 -1529

No files matched your search

+15 -13
View File
@@ -28,18 +28,20 @@ import (
"golang.org/x/time/rate"
)
const EnvBoundaryAddr = "BOUNDARY_ADDR"
const EnvBoundaryCACert = "BOUNDARY_CACERT"
const EnvBoundaryCAPath = "BOUNDARY_CAPATH"
const EnvBoundaryClientCert = "BOUNDARY_CLIENT_CERT"
const EnvBoundaryClientKey = "BOUNDARY_CLIENT_KEY"
const EnvBoundaryClientTimeout = "BOUNDARY_CLIENT_TIMEOUT"
const EnvBoundaryTLSInsecure = "BOUNDARY_TLS_INSECURE"
const EnvBoundaryTLSServerName = "BOUNDARY_TLS_SERVER_NAME"
const EnvBoundaryMaxRetries = "BOUNDARY_MAX_RETRIES"
const EnvBoundaryToken = "BOUNDARY_TOKEN"
const EnvBoundaryRateLimit = "BOUNDARY_RATE_LIMIT"
const EnvBoundarySRVLookup = "BOUNDARY_SRV_LOOKUP"
const (
EnvBoundaryAddr = "BOUNDARY_ADDR"
EnvBoundaryCACert = "BOUNDARY_CACERT"
EnvBoundaryCAPath = "BOUNDARY_CAPATH"
EnvBoundaryClientCert = "BOUNDARY_CLIENT_CERT"
EnvBoundaryClientKey = "BOUNDARY_CLIENT_KEY"
EnvBoundaryClientTimeout = "BOUNDARY_CLIENT_TIMEOUT"
EnvBoundaryTLSInsecure = "BOUNDARY_TLS_INSECURE"
EnvBoundaryTLSServerName = "BOUNDARY_TLS_SERVER_NAME"
EnvBoundaryMaxRetries = "BOUNDARY_MAX_RETRIES"
EnvBoundaryToken = "BOUNDARY_TOKEN"
EnvBoundaryRateLimit = "BOUNDARY_RATE_LIMIT"
EnvBoundarySRVLookup = "BOUNDARY_SRV_LOOKUP"
)
// Config is used to configure the creation of the client
type Config struct {
@@ -642,7 +644,7 @@ func (c *Client) NewRequest(ctx context.Context, method, requestPath string, bod
u.Path = ""
}
var host = u.Host
host := u.Host
// if SRV records exist (see
// https://tools.ietf.org/html/draft-andrews-http-srv-02), lookup the SRV
// record and take the highest match; this is not designed for