protoc-gen-go-rsn

command module
v0.0.0-...-6194f9b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 9 Imported by: 0

README

protoc-gen-go-rsn

Generation of helper components which represent resource names, following the guidance in AIP-4231. The goal is to make it easier for users to piece resource names together. See example.rsn_test.go for an example on using the generated code.

⚠️ This project is still in POC phase: it's not feature complete (according to AIP-4231), has no testing etc. You should use it with careful consideration.

To generate the example generated code, perform the following steps:

  1. Clone the googleapis repository and set the environment variable $GOOGLEAPIS to the cloned directory.
  2. Execute the following script:
go build -o protoc-gen-go-rsn .
cd example
protoc -I . -I "$GOOGLEAPIS" \
  --plugin=../protoc-gen-go-rsn \
  --go-rsn_out=. \
  --go-rsn_opt=module=github.com/simonbos/protoc-gen-go-rsn/example \
  --go-rsn_opt="Mexample.proto=github.com/simonbos/protoc-gen-go-rsn/example/examplersn;examplersn" \
  example.proto

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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