mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Fixed golint error
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
4de244c072
commit
f27e87f36e
4
echo.go
4
echo.go
@ -463,7 +463,7 @@ func (e *Echo) Static(prefix, root string) *Route {
|
||||
return e.static(prefix, root, e.GET)
|
||||
}
|
||||
|
||||
func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route {
|
||||
func (common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route {
|
||||
h := func(c Context) error {
|
||||
p, err := url.PathUnescape(c.Param("*"))
|
||||
if err != nil {
|
||||
@ -480,7 +480,7 @@ func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...Mid
|
||||
return get(prefix+"/*", h)
|
||||
}
|
||||
|
||||
func (_ common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route,
|
||||
func (common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route,
|
||||
m ...MiddlewareFunc) *Route {
|
||||
return get(path, func(c Context) error {
|
||||
return c.File(file)
|
||||
|
Loading…
Reference in New Issue
Block a user