src-d / proteus

Generate .proto files from Go source code.
https://blog.sourced.tech/post/proteus/
MIT License
735 stars 70 forks source link

Add customname option to fields if needed. #33

Closed Serabe closed 7 years ago

Serabe commented 7 years ago

Some field names cannot be converted back.

Follow this example:

ID -- snakecasify --> id -- camelcasify --> Id

Whenever this process returns a different result from the original field name, the (gogoproto.customname) option is added to the field.

Fixes #32

codecov-io commented 7 years ago

Current coverage is 92.48% (diff: 100%)

Merging #33 into services will increase coverage by 0.04%

@@           services        #33   diff @@
==========================================
  Files            13         13          
  Lines          1072       1078     +6   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            991        997     +6   
  Misses           53         53          
  Partials         28         28          

Powered by Codecov. Last update 84cf466...9af6dff