diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 10:20:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 10:20:06 -0600 |
| commit | fb79d5b17db770b7c905803087b86ccd630f6758 (patch) | |
| tree | 0821edd90dd6ec9b09e71437782a56094e2f299d /testSort/main.go | |
| parent | 766c2e16742d668b47320f6b228840d788b86723 (diff) | |
test works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'testSort/main.go')
| -rw-r--r-- | testSort/main.go | 22 |
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) + } } |
