diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 18:32:55 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 18:32:55 -0500 |
| commit | a0cfc1844842f1c41c759f336457dce05a50d8e6 (patch) | |
| tree | e8372bbc55bd9c3b450e33987f89efffb65e5e69 /generate.go | |
| parent | 412981de9c8a748ec9b6d0ca61b6d1dafa2a754a (diff) | |
add "make generate"v0.0.12
Diffstat (limited to 'generate.go')
| -rw-r--r-- | generate.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/generate.go b/generate.go new file mode 100644 index 0000000..0424400 --- /dev/null +++ b/generate.go @@ -0,0 +1,14 @@ +package config + +// 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 +// +//go:generate make go-generate +// # go:generate go get go.wit.com/apps/autogenpb # can't do this here since this repo is a GO "primitive" library (no deps) +// # go:generate go install -v go.wit.com/apps/autogenpb +//go:generate autogenpb --proto config.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" |
