Categorygithub.com/cobbinma/protoc-gen-camel
modulepackage
0.0.2
Repository: https://github.com/cobbinma/protoc-gen-camel.git
Documentation: pkg.go.dev

# README

protoc-gen-camel

A plug-in for Google's Protocol Buffers compiler to check camel case field name violations.

Installation

go install github.com/cobbinma/[email protected]

Usage

❯ protoc --camel_out=. $(find . -name '*.proto')
example/camel.proto:Field name "one_two" should be camelCase, such as "oneTwo".
--camel_out: 🐪: 1 total

Configuration

ignore:
    - camel.Foo.one_two

generate a configuration file with all violations ignored

protoc --camel_out=generate=true:. $(find . -name '*.proto')

use the configuration file

protoc --camel_out=config=camel.yml:. $(find . -name '*.proto')

Buf

version: v1
plugins:
  - plugin: camel
    out: .
    strategy: all
    opt:
      - config=camel.yml

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author