all: goimports vet

redo: clean proto goimports vet

vet:
	@GO111MODULE=off go vet
	@echo this go library builds okay

redomod: goimports
	rm -f go.*
	GO111MODULE= go mod init
	GO111MODULE= go mod tidy

goimports:
	goimports -w *.go

proto:
	autogenpb --proto widget.proto
	autogenpb --proto toolkitConfig.proto

clean:
	rm -f go.* *.pb.go