diff --git a/Makefile b/Makefile index 9f76d3d..0d4e639 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ all: make config.pb.go make account.pb.go +clean: + rm -f *.pb.go + events.pb.go: events.proto protoc --go_out=. events.proto diff --git a/account.pb.go b/account.pb.go index 1752964..297ca62 100644 --- a/account.pb.go +++ b/account.pb.go @@ -287,7 +287,9 @@ func init() { proto.RegisterType((*Account_HttpHeader)(nil), "witProtobuf.Account.HttpHeader") } -func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) } +func init() { + proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) +} var fileDescriptor_8e28828dcb8d24f0 = []byte{ // 398 bytes of a gzipped FileDescriptorProto diff --git a/config.pb.go b/config.pb.go index 265a827..acd353a 100644 --- a/config.pb.go +++ b/config.pb.go @@ -200,7 +200,9 @@ func init() { proto.RegisterType((*Config)(nil), "witProtobuf.Config") } -func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) } +func init() { + proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) +} var fileDescriptor_3eaf2c85e69e9ea4 = []byte{ // 319 bytes of a gzipped FileDescriptorProto diff --git a/events.pb.go b/events.pb.go index 8fd9b67..90ab168 100644 --- a/events.pb.go +++ b/events.pb.go @@ -420,7 +420,9 @@ func init() { proto.RegisterType((*Event_VM)(nil), "witProtobuf.Event.VM") } -func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) } +func init() { + proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) +} var fileDescriptor_8f22242cb04491f9 = []byte{ // 558 bytes of a gzipped FileDescriptorProto diff --git a/example-protobuf/Makefile b/example-protobuf/Makefile index e07773d..15d8b54 100644 --- a/example-protobuf/Makefile +++ b/example-protobuf/Makefile @@ -1,2 +1,8 @@ +build: + go build + +prep: + go get -v -t -u + run: go run *.go