From 08cd2afd86557f06d6b3f6e006d686fef4c7b2ee Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 Jan 2025 06:13:42 -0600 Subject: adding help --- example/Makefile | 3 +++ example/bad.proto | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 example/bad.proto (limited to 'example') diff --git a/example/Makefile b/example/Makefile index 3a045bd..40c0146 100644 --- a/example/Makefile +++ b/example/Makefile @@ -18,6 +18,9 @@ testProtoc: ../autogenpb --proto fruit.proto --package main # inserts mutex into protoc .pb.go file make build +help: + ../autogenpb --package main --proto bad.proto + modproto: clean withMutex goimports vet build ./example diff --git a/example/bad.proto b/example/bad.proto new file mode 100644 index 0000000..b9198e7 --- /dev/null +++ b/example/bad.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +// this file is wrong and will give you errors + +package main; + +// "Fruit" must exist. you can put anything in it +message Bad { + string something = 1; +} + +message Badthing { + string uuid = 1; // `autogenpb:uuid:be926ad9-f07f-484c-adf2-d96eeabf3079` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Bad Bads = 3; +} -- cgit v1.2.3