mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Update README.md
This commit is contained in:
@@ -75,6 +75,7 @@ func (h *Say) Hello(ctx context.Context, req *Request, rsp *Response) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
// create the service
|
// create the service
|
||||||
service := micro.New("helloworld")
|
service := micro.New("helloworld")
|
||||||
|
|
||||||
@@ -83,6 +84,7 @@ service.Handle(new(Say))
|
|||||||
|
|
||||||
// run the service
|
// run the service
|
||||||
service.Run()
|
service.Run()
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally set fixed address
|
Optionally set fixed address
|
||||||
|
Reference in New Issue
Block a user