From 38223d25713916ae25261d7adb78c1fa0c40227d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 20:53:13 -0500 Subject: init this var --- theMagicOfAutocomplete.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index 21aebed..89560c5 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -67,7 +67,8 @@ func Autocomplete(dest any) *Auto { // set the duration since the last auto complete // find the last entry. this is dumb way to do it - var last *Auto + last := new(Auto) + last.Ctime = timestamppb.New(time.Now().Add(-time.Second)) for found := range all.IterAll() { last = found } -- cgit v1.2.3