github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/service/README.md (about)

     1  # Service
     2  
     3  This is an example of creating a micro service.
     4  
     5  ## Contents
     6  
     7  - main.go - is the main definition of the service, handler and client
     8  - proto - contains the protobuf definition of the API
     9  
    10  ## Run the example
    11  
    12  Run the service
    13  
    14  ```shell
    15  go run main.go
    16  ```
    17  
    18  Run the client
    19  
    20  ```shell
    21  go run main.go --run_client
    22  ```
    23  
    24  And that's all there is to it.