summaryrefslogtreecommitdiff
path: root/testSort/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'testSort/main.go')
-rw-r--r--testSort/main.go22
1 files changed, 21 insertions, 1 deletions
diff --git a/testSort/main.go b/testSort/main.go
index 01a7c39..332bdf7 100644
--- a/testSort/main.go
+++ b/testSort/main.go
@@ -1,7 +1,27 @@
package main
import "log"
+import "go.wit.com/apps/autogenpb/testautogen"
func main() {
- log.Println("hello testSort")
+ all := new(testautogen.GitTags)
+ // newt := new(testautogen.GitTag)
+
+ new1 := testautogen.GitTag{
+ Refname: "master",
+ Objectname: "blah",
+ }
+ all.Append(&new1)
+
+ new2 := testautogen.GitTag{
+ Refname: "devel",
+ Objectname: "j23jljalse",
+ }
+ all.Append(&new2)
+
+ loop := all.SortByPath()
+ for loop.Scan() {
+ t := loop.Next()
+ log.Println("hello testSort t.Refname =", t.Refname, t.Objectname)
+ }
}