1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-01 22:09:21 +02:00

Glide for dependency mgmt

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-01-30 10:05:17 -08:00
parent 28b1b9d57b
commit 6c320ca50b
5 changed files with 12 additions and 8 deletions

4
.gitignore vendored
View File

@ -33,10 +33,12 @@ _testmain.go
website/public
website/make
website/Makefile
website/marathon*
# node.js web dependencies
node_modules
# code coverage output files
*.coverprofile
# glide
vendor

View File

@ -8,7 +8,9 @@ import (
"github.com/labstack/gommon/color"
)
const loggerFormat = "%s %s %s %s %s %d"
const (
format = "%s %s %s %s %s %d"
)
// Logger returns a Middleware that logs requests.
func Logger() echo.MiddlewareFunc {
@ -50,7 +52,7 @@ func Logger() echo.MiddlewareFunc {
code = color.Cyan(n)
}
logger.Info(loggerFormat, remoteAddr, method, path, code, stop.Sub(start), size)
logger.Infof(format, remoteAddr, method, path, code, stop.Sub(start), size)
return nil
}
}

View File

@ -1,5 +1,5 @@
{
"baseurl": "http://labstack.com/echo",
"baseurl": "https://labstack.com/echo",
"languageCode": "en-us",
"title": "Echo",
"canonifyurls": true,

View File

@ -2,7 +2,7 @@
title: Index
---
# Echo
# ![Echo](/images/echo.svg) Echo
A fast and unfancy micro web framework for Go.

View File

@ -1,12 +1,12 @@
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<a href="/" class="mdl-navigation__link mdl-layout-title">
{{ .Site.Title }}
<a href="https://labstack.com" class="mdl-navigation__link mdl-layout-title">
<img src="/images/logo.svg" alt="LabStack">
</a>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
<a href="https://github.com/labstack/echo" class="mdl-navigation__link">
<i class="fa fa-github fa-lg"></i> GitHub
<i class="fa fa-github fa-2x"></i>
</a>
</nav>
</div>