use enumer generate tool for state strings

This commit is contained in:
Christian Schwarz
2018-10-12 22:10:49 +02:00
parent 89e0103abd
commit af3d96dab8
8 changed files with 172 additions and 77 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ builddep() {
go get -u golang.org/x/tools/cmd/stringer
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/golang/protobuf/protoc-gen-go
if ! type stringer || ! type dep || ! type protoc-gen-go; then
go get -u github.com/alvaroloes/enumer
if ! type stringer || ! type dep || ! type protoc-gen-go; || ! type enumer then
echo "Installed dependencies but can't find them in \$PATH, adjust it to contain \$GOPATH/bin" 1>&2
exit 1
fi