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")