does a single droplet
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
03396ebab5
commit
273c0f5451
|
@ -1,5 +1,6 @@
|
||||||
build:
|
build:
|
||||||
GO111MODULE=off go build
|
GO111MODULE=off go build
|
||||||
|
./configfile
|
||||||
|
|
||||||
prep:
|
prep:
|
||||||
go get -v -t -u
|
go get -v -t -u
|
||||||
|
|
|
@ -20,14 +20,18 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("Error reading file:", err)
|
log.Fatalln("Error reading file:", err)
|
||||||
}
|
}
|
||||||
allEvents := &pb.Droplet{}
|
|
||||||
if err := proto.Unmarshal(in, allEvents); err != nil {
|
var allEvents pb.Droplet
|
||||||
|
if err := proto.Unmarshal(in, &allEvents); err != nil {
|
||||||
log.Fatalln("Failed to parse events:", err)
|
log.Fatalln("Failed to parse events:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// listPeople(os.Stdout, allEvents)
|
// listPeople(os.Stdout, allEvents)
|
||||||
// got := in.String()
|
// got := in.String()
|
||||||
log.Println(in)
|
log.Println(allEvents)
|
||||||
|
//for i, d := range allEvents {
|
||||||
|
// log.Println("i =", i, "d =", d)
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
func marshalWriteToFile(myWriter *bufio.Writer, e *pb.Droplet) {
|
func marshalWriteToFile(myWriter *bufio.Writer, e *pb.Droplet) {
|
||||||
|
|
Loading…
Reference in New Issue