summaryrefslogtreecommitdiff
path: root/example/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'example/main.go')
-rw-r--r--example/main.go4
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)