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

     1  # noproto
     2  
     3  This example demonstrates how to use micro without protobuf.
     4  
     5  Use micro with standard go types and use the json codec for marshalling. Services have multiple codecs and use the `Content-Type` 
     6  header to determine which to use. The client sends `Content-Type: application/json`. Because we can marshal standard Go types to 
     7  json there is no code generation or use of protobuf required.
     8  
     9  ## Contents
    10  
    11  - main.go - is a micro greeter service
    12  - client - is a micro json client
    13  
    14  ## Run the example
    15  
    16  Run the service
    17  
    18  ```shell
    19  go run main.go
    20  ```
    21  
    22  Run the client
    23  
    24  ```shell
    25  go run client/main.go
    26  ```