Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 30 Oct 2017 14:14:00 +0000 proteus - generate .proto files from Go source code #protobuf <p>The motivation behind this library is to use Go as a source of truth for your models instead of the other way around and then generating Go code from a <code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.6px; padding: 0.2em 0px; margin: 0px; background-color: rgba(27, 31, 35, 0.05); border-radius: 3px;">.proto</code>&nbsp;file, which does not generate idiomatic code.</p> <p>Proteus scans all the code in the selected packages and generates protobuf messages for every exported struct (and all the ones that are referenced in any other struct, even though they are not exported). The types that semantically are used as enumerations in Go are transformed into proper protobuf enumerations. All the exported functions and methods will be turned into protobuf RPC services.</p> 4 points posted by gopher https://github.com/src-d/proteus 2865 Mon, 30 Oct 2017 08:47:00 +0000