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:
parent
a5d81b8d4a
commit
60f88a7a1c
4
echo.go
4
echo.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user