Package in Go for parsing and formatting Google Protocol Buffers .proto files version 2 + 3 <https://developers.google.com/protocol-buffers/docs/reference/proto3-spec>
https://github.com/emicklei/proto Includes a protofmt tool for format your .proto definition files. > protofmt -help Usage of protofmt [flags] [path ...] -w write result to (source) file instead of stdout Example from the unittest_proto3_arena.proto // Test messages for packed fields message TestPackedTypes { repeated int32 packed_int32 = 90 [packed=true]; repeated int64 packed_int64 = 91 [packed=true]; repeated uint32 packed_uint32 = 92 [packed=true]; repeated uint64 packed_uint64 = 93 [packed=true]; repeated sint32 packed_sint32 = 94 [packed=true]; repeated sint64 packed_sint64 = 95 [packed=true]; repeated fixed32 packed_fixed32 = 96 [packed=true]; repeated fixed64 packed_fixed64 = 97 [packed=true]; repeated sfixed32 packed_sfixed32 = 98 [packed=true]; repeated sfixed64 packed_sfixed64 = 99 [packed=true]; repeated float packed_float = 100 [packed=true]; repeated double packed_double = 101 [packed=true]; repeated bool packed_bool = 102 [packed=true]; repeated ForeignEnum packed_enum = 103 [packed=true]; } MIT License. Contributions welcome. ^ Ernest -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
