From 8ebf38a47218f9b7b5477d4fcb07cb3afaee7562 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Nov 2024 22:36:55 -0600 Subject: [PATCH] more example Signed-off-by: Jeff Carr --- example/main.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/example/main.go b/example/main.go index 3973788..1fa70e0 100644 --- a/example/main.go +++ b/example/main.go @@ -8,10 +8,18 @@ import ( ) func main() { - testPackages() + m := testMachine() + testPackages(m) } -func testPackages() { +func testMachine() *zoopb.Machine { + var m *zoopb.Machine + m = new(zoopb.Machine) + m.Hostname = "zookeeper" + return m +} + +func testPackages(m *zoopb.Machine) { var all *zoopb.Packages all = new(zoopb.Packages) // r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb")