Skip to content

Commit e1030e4

Browse files
committed
Update echo_hello_server.go
1 parent 5ea1804 commit e1030e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/echo_hello_server/echo_hello_server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"github.com/hprose/hprose-golang/rpc"
55
"github.com/labstack/echo"
6-
"github.com/labstack/echo/engine/standard"
76
)
87

98
func hello(name string) string {
@@ -14,6 +13,6 @@ func main() {
1413
service := rpc.NewHTTPService()
1514
service.AddFunction("hello", hello)
1615
e := echo.New()
17-
e.Any("/hello", standard.WrapHandler(service))
16+
e.Any("/hello", echo.WrapHandler(service))
1817
e.Run(standard.New(":8080"))
1918
}

0 commit comments

Comments
 (0)