mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 14:35:07 +00:00
Update README.md
This commit is contained in:
@@ -23,9 +23,7 @@ micro run github.com/micro/services/helloworld
|
|||||||
To call a service from another
|
To call a service from another
|
||||||
|
|
||||||
```
|
```
|
||||||
import (
|
import "github.com/micro/services/helloworld/proto"
|
||||||
pb "github.com/micro/services/helloworld/proto"
|
|
||||||
)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Clients
|
## Clients
|
||||||
@@ -35,10 +33,7 @@ API clients are generated in [clients](https://github.com/micro/services/tree/ma
|
|||||||
To call a service via the api client import as follows
|
To call a service via the api client import as follows
|
||||||
|
|
||||||
```
|
```
|
||||||
import "github.com/micro/services/clients/go/db"
|
import "github.com/micro/services/clients/go/helloworld"
|
||||||
|
|
||||||
client := db.NewDbService($MICRO_API_TOKEN)
|
|
||||||
client.Create(...)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|||||||
Reference in New Issue
Block a user