examples/hello-world/README.md
The simplest go-micro service demonstrating core concepts.
This example creates a basic RPC service that:
Greeter.Hello methodgo run main.go
The service will start and make test calls to itself, then wait for incoming requests.
curl -X POST http://localhost:8080 \
-H 'Content-Type: application/json' \
-H 'Micro-Endpoint: Greeter.Hello' \
-d '{"name": "Alice"}'
Expected response:
{"message": "Hello Alice"}
micro call greeter Greeter.Hello '{"name": "Bob"}'
Greeter service with Hello methodmicro.New() with optionsfunc(ctx, req, rsp) error