diff options
author | Valery Piashchynski <[email protected]> | 2020-11-19 17:28:30 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-19 17:28:30 +0300 |
commit | 71c81a91f9f967e41310077bd26b1dedb0b49556 (patch) | |
tree | cce9cb740bae0b9acbfc15d76823174f571a0a6c /plugins/http/parse.go | |
parent | e9595a5c133ff02b765c0b59913593e7f91bc4e7 (diff) |
huge linters fix update
Diffstat (limited to 'plugins/http/parse.go')
-rw-r--r-- | plugins/http/parse.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/http/parse.go b/plugins/http/parse.go index c1038725..d4a1604b 100644 --- a/plugins/http/parse.go +++ b/plugins/http/parse.go @@ -30,7 +30,7 @@ func parseData(r *http.Request) dataTree { // pushes value into data tree. func (d dataTree) push(k string, v []string) { - keys := fetchIndexes(k) + keys := FetchIndexes(k) if len(keys) <= MaxLevel { d.mount(keys, v) } @@ -82,7 +82,7 @@ func parseUploads(r *http.Request, cfg UploadsConfig) *Uploads { // pushes new file upload into it's proper place. func (d fileTree) push(k string, v []*FileUpload) { - keys := fetchIndexes(k) + keys := FetchIndexes(k) if len(keys) <= MaxLevel { d.mount(keys, v) } @@ -111,8 +111,8 @@ func (d fileTree) mount(i []string, v []*FileUpload) { d[i[0]].(fileTree).mount(i[1:], v) } -// fetchIndexes parses input name and splits it into separate indexes list. -func fetchIndexes(s string) []string { +// FetchIndexes parses input name and splits it into separate indexes list. +func FetchIndexes(s string) []string { var ( pos int ch string |