more example

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-15 22:36:55 -06:00
parent ca0116a15f
commit 8ebf38a472
1 changed files with 10 additions and 2 deletions

View File

@ -8,10 +8,18 @@ import (
) )
func main() { 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 var all *zoopb.Packages
all = new(zoopb.Packages) all = new(zoopb.Packages)
// r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb") // r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb")