diff options
| author | Jeff Carr <[email protected]> | 2025-10-13 20:53:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-13 20:53:13 -0500 |
| commit | 38223d25713916ae25261d7adb78c1fa0c40227d (patch) | |
| tree | 41522d5237f164fbbeba3c3da965676a370fd6b0 /theMagicOfAutocomplete.go | |
| parent | 311135afdeae5789350d56780a8c507e83165473 (diff) | |
init this var
Diffstat (limited to 'theMagicOfAutocomplete.go')
| -rw-r--r-- | theMagicOfAutocomplete.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |
