summaryrefslogtreecommitdiff
path: root/dictionary.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-12-27 15:20:29 +0700
committerShulhan <ms@kilabit.info>2025-12-27 15:20:29 +0700
commit56fee32af1615249691bd09893655fd8e45fe9ca (patch)
treecfc49a546c8a8e88d3637ec6fed5e1518719bda0 /dictionary.go
parentbfd37da4caf80514bccb73fd865f91582e5a22e2 (diff)
downloadkamusku-0.1.1.tar.xz
Release kamusku v0.1.1 (2025-12-27)HEADv0.1.1main
**🌼 all: fix logging in client tests** **💧 all: replace golangci-lint with internal linter** The internal/cmd/gocheck use the go static analysis [Analyzer] that are not included in the default go vet. By using gocheck we found un-alignment and shadowing, * client.go:18:13: struct with 24 pointer bytes could be 16 * dictionary.go:23:17: struct with 32 pointer bytes could be 16 * client_test.go:18:13: struct with 56 pointer bytes could be 48 * client_test.go:62:13: struct with 56 pointer bytes could be 48 * cmd/kamusku-telegram-bot/main.go:31:3: declaration of "err" shadows declaration at line 25 * kamusku_test.go:49:3: declaration of "err" shadows declaration at line 38 [Analyzer]: https://pkg.go.dev/golang.org/x/tools/go/analysis#hdr-Analyzer **💧 README: add section about development and license** **💧 all: fix test due to missing testdata directory**
Diffstat (limited to 'dictionary.go')
-rw-r--r--dictionary.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dictionary.go b/dictionary.go
index 836f3cd..c8e21b8 100644
--- a/dictionary.go
+++ b/dictionary.go
@@ -133,7 +133,7 @@ func (dict *dictionary) store() (err error) {
if err != nil {
errc := f.Close()
if errc != nil {
- log.Println("dictionary: store: ", err)
+ log.Println("dictionary: store: create:", err)
}
return err
}
@@ -143,14 +143,14 @@ func (dict *dictionary) store() (err error) {
if err != nil {
errc := f.Close()
if errc != nil {
- log.Println("dictionary: store: ", err)
+ log.Println("dictionary: store: encode:", err)
}
return err
}
errc := f.Close()
if errc != nil {
- log.Println("dictionary: store: ", err)
+ log.Println("dictionary: store: close:", err)
}
err = libos.Copy(dict.storagePath, newStorage)