Skip to content

Commit 18cb585

Browse files
committed
Update README
1 parent d2fa2bf commit 18cb585

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ package main
156156
import (
157157
"github.com/hprose/hprose-golang/rpc"
158158
"github.com/labstack/echo"
159-
"github.com/labstack/echo/engine/standard"
160159
)
161160

162161
func hello(name string) string {
@@ -167,8 +166,8 @@ func main() {
167166
service := rpc.NewHTTPService()
168167
service.AddFunction("hello", hello)
169168
e := echo.New()
170-
e.Any("/hello", standard.WrapHandler(service))
171-
e.Run(standard.New(":8080"))
169+
e.Any("/hello", echo.WrapHandler(service))
170+
e.Start(":8080")
172171
}
173172
```
174173

0 commit comments

Comments
 (0)