1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

Export version

I'm looking into implementing tracing middleware for Echo
(https://github.com/elastic/apm-agent-go/issues/20). I'd
like to report the version of the Echo framework in use.
This commit is contained in:
Andrew Wilkins 2018-03-22 12:15:41 +08:00 committed by Vishal Rana
parent a5d81b8d4a
commit 60f88a7a1c

View File

@ -215,7 +215,7 @@ const (
)
const (
version = "3.3.0"
Version = "3.3.0"
website = "https://echo.labstack.com"
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
banner = `
@ -650,7 +650,7 @@ func (e *Echo) StartServer(s *http.Server) (err error) {
}
if !e.HideBanner {
e.colorer.Printf(banner, e.colorer.Red("v"+version), e.colorer.Blue(website))
e.colorer.Printf(banner, e.colorer.Red("v"+Version), e.colorer.Blue(website))
}
if s.TLSConfig == nil {