Skip to content

Commit 3f48b92

Browse files
committed
RunWithConfig to RunConfig
Signed-off-by: Vishal Rana <[email protected]>
1 parent 65fcca2 commit 3f48b92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

echo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ func (e *Echo) SetEngine(t engine.Type) {
543543
// Run runs a server.
544544
func (e *Echo) Run(addr string) {
545545
c := &engine.Config{Address: addr}
546-
e.RunWithConfig(c)
546+
e.RunConfig(c)
547547
}
548548

549549
// RunTLS runs a server with TLS configuration.
@@ -553,11 +553,11 @@ func (e *Echo) RunTLS(addr, certfile, keyfile string) {
553553
TLSCertfile: certfile,
554554
TLSKeyfile: keyfile,
555555
}
556-
e.RunWithConfig(c)
556+
e.RunConfig(c)
557557
}
558558

559-
// RunWithConfig runs a server with engine configuration.
560-
func (e *Echo) RunWithConfig(config *engine.Config) {
559+
// RunConfig runs a server with engine configuration.
560+
func (e *Echo) RunConfig(config *engine.Config) {
561561
handler := func(req engine.Request, res engine.Response) {
562562
if e.hook != nil {
563563
e.hook(req, res)

0 commit comments

Comments
 (0)