diff options
| author | Jeff Carr <[email protected]> | 2025-10-10 05:51:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-10 05:51:07 -0500 |
| commit | 7b3ac4a9ce4e80f89abfb8c01fed65504a19fb67 (patch) | |
| tree | b639a83ce428fc85121383ebb9675373b2b4a8bb | |
| parent | 67eea3ecc975ed1ce2f16b0a684dd5a8e9dfc6e5 (diff) | |
| -rw-r--r-- | generate.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generate.go b/generate.go index fe9787a..fef0a67 100644 --- a/generate.go +++ b/generate.go @@ -1,13 +1,12 @@ package chatpb -// NOTE: it would be helpful if go.mod doesn't exist, that go generate -// would automatically run go mod init and go mod tidy -// and allow directives to 'go get go.wit.com/apps/autogenpb' -// then this process could be fully automated +// 'make generate' will call this +// +// go generate is a cool feature. many thanks to the GO dev team +// +// NOTE: please add to go generate: if ! exists go.mod, run 'go mod init' & 'go mod tidy' // //go:generate make go-generate //go:generate autogenpb --proto chat.proto //go:generate autogenpb --proto book.proto -// # go:generate go get golang.org/x/tools # repo seems broken at this time (?) -// # go:generate go install -v golang.org/x/tools/cmd/goimports //go:generate bash -c "goimports -w *.go" |
