blob: d4e209f93870bc664b2b62c37ab92eb651355aa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
  | 
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
//
//go:generate make go-generate
//go:generate autogenpb --proto event.proto
//go:generate autogenpb --proto portmap.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"
  |