protoc-gen-rich-model

command
v0.0.0-...-317f090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 8 Imported by: 0

README

protoc-gen-rich-model

Protoc plugin for generating Go rich model code from Protocol Buffers (.proto files). This tool is designed to simplify the process of creating rich model structures in Go applications by automatically generating rich model-like structures based on your protobuf definitions.

Features
  • Generate DDD-like Go structs with rich model capabilities based on protobuf messages.
  • Whitelist Types: Allows specifying a list of types to generate rich models for.
  • Support additional types:
    • url.URL
Installation
go install github.com/shortlink-org/shortlink/pkg/protoc/protoc-gen-rich-model

# for development
go install ./pkg/protoc/protoc-gen-rich-model
Usage with buf
version: v1

managed:
  enabled: true

plugins:
  - plugin: rich-model
    strategy: all
    out: boundaries/link/link
    opt:
      - "paths=source_relative"
      - "filter=Link;Links"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
options
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL