21 lines
333 B
Go
21 lines
333 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"go.wit.com/lib/protobuf/zoopb"
|
|
)
|
|
|
|
func main() {
|
|
var all *zoopb.Packages
|
|
all = new(zoopb.Packages)
|
|
// r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb")
|
|
|
|
newP := new(zoopb.Package)
|
|
newP.Name = "bash"
|
|
newP.Version = "5.2.21"
|
|
all.Append(newP)
|
|
|
|
fmt.Println("packages are:", len(all.Packages))
|
|
}
|