Run a more strict formatter over the code (#11312)

* Update tooling

* Run gofumpt

* go mod vendor
This commit is contained in:
Brian Kassouf
2021-04-08 09:43:39 -07:00
committed by GitHub
parent 60f3ba99a4
commit a24653cc5c
658 changed files with 10961 additions and 3671 deletions

View File

@@ -37,7 +37,7 @@ func (p *PathMap) init() {
if p.Schema == nil {
p.Schema = map[string]*FieldSchema{
"value": &FieldSchema{
"value": {
Type: TypeString,
Description: fmt.Sprintf("Value for %s mapping", p.Name),
},
@@ -207,7 +207,7 @@ func (p *PathMap) Paths() []*Path {
}
return []*Path{
&Path{
{
Pattern: fmt.Sprintf("%s/%s/?$", p.Prefix, p.Name),
Callbacks: map[logical.Operation]OperationFunc{
@@ -218,7 +218,7 @@ func (p *PathMap) Paths() []*Path {
HelpSynopsis: fmt.Sprintf("Read mappings for %s", p.Name),
},
&Path{
{
Pattern: fmt.Sprintf(`%s/%s/(?P<key>[-\w]+)`, p.Prefix, p.Name),
Fields: schema,