mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 15:10:59 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -41,10 +41,8 @@ const (
|
||||
NumberCharacters = "0123456789"
|
||||
)
|
||||
|
||||
var (
|
||||
// emailRX represents email address matching pattern
|
||||
emailRX = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
|
||||
)
|
||||
// emailRX represents email address matching pattern
|
||||
var emailRX = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
|
||||
|
||||
// Vars for common.go operations
|
||||
var (
|
||||
@@ -136,7 +134,8 @@ func NewHTTPClientWithTimeout(t time.Duration) *http.Client {
|
||||
}
|
||||
h := &http.Client{
|
||||
Transport: tr,
|
||||
Timeout: t}
|
||||
Timeout: t,
|
||||
}
|
||||
return h
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user