From 6ce9c29135cd181755e0e76a5ddba98e37ae49d8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Jan 2025 21:33:00 -0600 Subject: lucked out. compiled and ran and worked on the first pass --- example/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') 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) -- cgit v1.2.3