1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00
Files
go-micro/examples/helloworld/README.md

33 lines
568 B
Markdown
Raw Normal View History

2020-12-26 15:17:20 +00:00
# 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/asim/go-micro/tree/master/cmd/micro)
- [protoc-gen-micro](https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro)
2020-12-26 15:17:20 +00:00
## Run Service
```shell
micro run . --name helloworld
2020-12-26 15:17:20 +00:00
```
## Query Service
```
micro call helloworld Greeter.Hello '{"name": "John"}'
```
## List Services
```shell
micro services
```