diff options
Diffstat (limited to 'dictionary.go')
| -rw-r--r-- | dictionary.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dictionary.go b/dictionary.go index e58151f..836f3cd 100644 --- a/dictionary.go +++ b/dictionary.go @@ -21,10 +21,10 @@ const ( // dictionary contains cache of words and its definitions. type dictionary struct { - sync.Mutex cache map[string]*kbbi.Word - lastSize int storagePath string + lastSize int + sync.Mutex } // newDictionary create and initialize the cache for dictionary. |
