Sample count and uppercase service using go-kit
From: go-kit examples
go build .
go run main.go
or after build
counteruppersvc
$ curl -XPOST http://localhost:8080/count -d '{"s": "my happy string"}'
{"v":15}
curl -XPOST http://localhost:8080/uppercase -d '{"s": "my happy string"}'
{"v":"MY HAPPY STRING"}
curl -XPOST http://localhost:8080/downcase -d '{"s": "MY HAPPY STRING"}'
{"v":"my happy string"}