noproto

command
v0.0.0-...-bf4ab67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

noproto

This example demonstrates how to use micro without protobuf.

Use micro with standard go types and use the json codec for marshalling. Services have multiple codecs and use the Content-Type header to determine which to use. The client sends Content-Type: application/json. Because we can marshal standard Go types to json there is no code generation or use of protobuf required.

Contents

  • main.go - is a micro greeter service
  • client - is a micro json client

Run the example

Run the service

go run main.go

Run the client

go run client/main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL