zoopb/example/main.go

21 lines
333 B
Go
Raw Normal View History

2024-11-03 00:39:52 -05:00
package main
import (
"fmt"
"go.wit.com/lib/protobuf/zoopb"
2024-11-03 00:39:52 -05:00
)
func main() {
var all *zoopb.Packages
all = new(zoopb.Packages)
// r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb")
2024-11-03 00:39:52 -05:00
newP := new(zoopb.Package)
newP.Name = "bash"
newP.Version = "5.2.21"
all.Append(newP)
fmt.Println("packages are:", len(all.Packages))
2024-11-03 00:39:52 -05:00
}