2024-11-03 00:39:52 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2024-11-15 17:25:11 -06:00
|
|
|
"go.wit.com/lib/protobuf/zoopb"
|
2024-11-03 00:39:52 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-11-15 17:25:11 -06:00
|
|
|
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
|
|
|
|
2024-11-15 17:25:11 -06: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
|
|
|
}
|