summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 17:25:11 -0600
committerJeff Carr <[email protected]>2024-11-15 17:25:11 -0600
commit5ef3669e7d35d6b281e2c4b5972fa9958c30f74c (patch)
tree1553423b3495b218e9bd5536f98e04bc0e9c0993 /example
parenteacbb1fb7af28656b269b8bdc287f67a88e4f233 (diff)
stub in sort function
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'example')
-rw-r--r--example/main.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/example/main.go b/example/main.go
index bbf6729..8187d57 100644
--- a/example/main.go
+++ b/example/main.go
@@ -3,12 +3,18 @@ package main
import (
"fmt"
- "go.wit.com/lib/protobuf/gitpb"
+ "go.wit.com/lib/protobuf/zoopb"
)
func main() {
- var r *gitpb.Repository
- r = gitpb.Load("go.wit.com/lib/protobuf/gitpb")
+ var all *zoopb.Packages
+ all = new(zoopb.Packages)
+ // r = zoopb.LoadJSON("go.wit.com/lib/protobuf/zoopb")
- fmt.Println("repo has branches:", len(r.Branches))
+ newP := new(zoopb.Package)
+ newP.Name = "bash"
+ newP.Version = "5.2.21"
+ all.Append(newP)
+
+ fmt.Println("packages are:", len(all.Packages))
}