Skip to content

Commit 049dea6

Browse files
authored
Update README.md
1 parent 3fa2a38 commit 049dea6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Create, initialise and run the service
7474

7575
```golang
7676
// create a new service
77-
service := micro.NewService(
78-
micro.Name("helloworld"),
79-
micro.Handle(new(Helloworld)),
80-
)
77+
service := micro.New("helloworld")
78+
79+
// register handler
80+
service.Handle(new(Helloworld))
8181

8282
// initialise flags
8383
service.Init()
@@ -105,4 +105,6 @@ curl -XPOST \
105105
http://localhost:8080
106106
```
107107

108+
## Plugins
108109

110+
See [Plugins](https://github.com/micro/plugins) for implementations of the various core interfaces.

0 commit comments

Comments
 (0)