mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-30 22:33:49 +02:00
Update README.md
This commit is contained in:
10
README.md
10
README.md
@ -74,10 +74,10 @@ Create, initialise and run the service
|
|||||||
|
|
||||||
```golang
|
```golang
|
||||||
// create a new service
|
// create a new service
|
||||||
service := micro.NewService(
|
service := micro.New("helloworld")
|
||||||
micro.Name("helloworld"),
|
|
||||||
micro.Handle(new(Helloworld)),
|
// register handler
|
||||||
)
|
service.Handle(new(Helloworld))
|
||||||
|
|
||||||
// initialise flags
|
// initialise flags
|
||||||
service.Init()
|
service.Init()
|
||||||
@ -105,4 +105,6 @@ curl -XPOST \
|
|||||||
http://localhost:8080
|
http://localhost:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Plugins
|
||||||
|
|
||||||
|
See [Plugins](https://github.com/micro/plugins) for implementations of the various core interfaces.
|
||||||
|
Reference in New Issue
Block a user