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