mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-05 10:20:53 +02:00
28 lines
480 B
Markdown
28 lines
480 B
Markdown
# Hello World
|
|
|
|
This is hello world using micro
|
|
|
|
## Contents
|
|
|
|
- main.go - is the main definition of the service, handler and client
|
|
- proto - contains the protobuf definition of the API
|
|
|
|
## Dependencies
|
|
|
|
Install the following
|
|
|
|
- [micro](https://github.com/micro/micro)
|
|
- [protoc-gen-micro](https://github.com/micro/protoc-gen-micro)
|
|
|
|
## Run Service
|
|
|
|
```shell
|
|
micro run service --name helloworld
|
|
```
|
|
|
|
## Query Service
|
|
|
|
```
|
|
micro call helloworld Greeter.Hello '{"name": "John"}'
|
|
```
|