diff options
| author | Jeff Carr <[email protected]> | 2025-10-10 05:50:34 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-10 05:50:34 -0500 | 
| commit | 5f3c22a6e56b4eba9681564d596fb7a02de8d42b (patch) | |
| tree | 5b55c8d849de1c8e1cf7bcf3672054b22ab46cae | |
| parent | b4a3c86137db341c3b10b8ed3a55927cd7498b61 (diff) | |
| -rw-r--r-- | generate.go | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/generate.go b/generate.go index a45bda4..21fef39 100644 --- a/generate.go +++ b/generate.go @@ -1,12 +1,11 @@  package main -// 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 block.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"  | 
