Hi, This package was created to format .proto files but could also be used to write code generators (eg. HTML doc, mocks).
https://github.com/emicklei/proto 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 "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
