diff options
| author | Jeff Carr <[email protected]> | 2025-01-10 21:33:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-10 21:33:00 -0600 |
| commit | 6ce9c29135cd181755e0e76a5ddba98e37ae49d8 (patch) | |
| tree | fa7f80f57ff946c6132f7d784f713774dc749c43 /example/main.go | |
| parent | 47a7163ff395e25663b0b65fa4e954a27417b1a7 (diff) | |
lucked out. compiled and ran and worked on the first pass
Diffstat (limited to 'example/main.go')
| -rw-r--r-- | example/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/main.go b/example/main.go index c180350..9fdf1ca 100644 --- a/example/main.go +++ b/example/main.go @@ -109,10 +109,10 @@ func (pb *Fruits) addThings() { tmp := new(Fruit) tmp.Brand = name tmp.City = "paris" - if pb.AppendUniqueBrand(tmp) { + if pb.AppendUniqueByBrand(tmp) { // log.Printf("AppendUniqueBrand() ok len=%s %s %d\n", tmp.Brand, tmp.City, pb.Len()) } else { - log.Printf("AppendUniqueBrand() ERROR len=%s %s %d\n", tmp.Brand, tmp.City, pb.Len()) + log.Printf("AppendUniqueByBrand() ERROR len=%s %s %d\n", tmp.Brand, tmp.City, pb.Len()) os.Exit(-1) } pb.Append(tmp) |
