diff options
| author | Jeff Carr <[email protected]> | 2025-10-10 05:51:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-10 05:51:16 -0500 |
| commit | d011e7663af7851278660dcae7a42a44791b4211 (patch) | |
| tree | 44bd6cd389ec0c939b82d73bf8d2005b44cd8f5e /generate.go | |
| parent | a08846b17f382a6c94017cc74e1efcbf8eec6376 (diff) | |
new notes
Diffstat (limited to 'generate.go')
| -rw-r--r-- | generate.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generate.go b/generate.go index 936e322..a85e267 100644 --- a/generate.go +++ b/generate.go @@ -2,15 +2,14 @@ package forgepb -// NOTE: it would be helpful if go.mod doesn't exist, that go generate -// would automatically run go mod init and go mod tidy -// This would allow directives like 'go install 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 forgeConfig.proto //go:generate autogenpb --proto patch.proto //go:generate autogenpb --proto set.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" |
