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.
To generate the example generated code, perform the following steps:
- Clone the googleapis repository and set the environment variable
$GOOGLEAPIS
to the cloned directory. - 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