A microservice to check whether a number is odd.
$ go get github.com/q3k/is-odd
$ go generate github.com/q3k/is-odd/...
$ go build github.com/q3k/is-odd
$ ./is-odd
$ grpcurl -plaintext -format text -d 'number: 2138' 127.0.0.1:2137 isodd.IsOdd.IsOdd
result: RESULT_NON_ODD
$ grpcurl -plaintext -format text -d 'number: 2137' 127.0.0.1:2137 isodd.IsOdd.IsOdd
result: RESULT_ODD
Copyright © 2019 Serge Bazanski [email protected] This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the LICENSE file for more details.