<commit_before># protoc-gen-micro

This is protobuf code generation for go-micro. We use protoc-gen-micro to reduce boilerplate code.

## Install

```
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3
```

Also required: 

- [protoc](https://github.com/google/protobuf)
- [protoc-gen-go](https://google.golang.org/protobuf)

## Usage

Define your service as `greeter.proto`

```
syntax = "proto3";

service Greeter {
	rpc Hello(Request) returns (Response) {}
}

message Request {
	string name = 1;
}

message Response {<commit_msg>Add latest version (#2303)<commit_after># protoc-gen-micro

This is protobuf code generation for go-micro. We use protoc-gen-micro to reduce boilerplate code.

## Install

```
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest
```

Also required: 

- [protoc](https://github.com/google/protobuf)
- [protoc-gen-go](https://google.golang.org/protobuf)

## Usage

Define your service as `greeter.proto`

```
syntax = "proto3";

service Greeter {
	rpc Hello(Request) returns (Response) {}
}

message Request {
	string name = 1;
}

message Response {
{'fraction_non_alphanumeric': 0.14519056261343014, 'fraction_numerical': 0.009074410163339383, 'mean_word_length': 4.202830188679245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5912690', 'n_tokens_mistral': 416, 'n_tokens_neox': 373, 'n_words': 93}