summaryrefslogtreecommitdiff
path: root/example/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-03 00:39:52 -0500
committerJeff Carr <[email protected]>2024-11-03 00:39:52 -0500
commit35f764f2bc12553cd93c4f5e7b046f887ec353cb (patch)
treed7a4b631c6deb9dee77b4ec23be2adaa7e7af1a0 /example/main.go
initial file
Diffstat (limited to 'example/main.go')
-rw-r--r--example/main.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/main.go b/example/main.go
new file mode 100644
index 0000000..bbf6729
--- /dev/null
+++ b/example/main.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "fmt"
+
+ "go.wit.com/lib/protobuf/gitpb"
+)
+
+func main() {
+ var r *gitpb.Repository
+ r = gitpb.Load("go.wit.com/lib/protobuf/gitpb")
+
+ fmt.Println("repo has branches:", len(r.Branches))
+}