mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-12-24 12:15:31 +08:00
v0.17.1
This commit is contained in:
@@ -6,7 +6,7 @@ require (
|
||||
github.com/gin-contrib/cors v1.7.2
|
||||
github.com/gin-contrib/gzip v1.0.1
|
||||
github.com/gin-gonic/gin v1.10.0
|
||||
github.com/gotoeasy/glang v0.20.0
|
||||
github.com/gotoeasy/glang v0.20.1
|
||||
github.com/shirou/gopsutil v3.21.11+incompatible
|
||||
github.com/streadway/amqp v1.1.0
|
||||
github.com/syndtr/goleveldb v1.0.0
|
||||
|
||||
@@ -159,6 +159,8 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN
|
||||
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/gotoeasy/glang v0.20.0 h1:sT60iZwj6BcekjB9ZnksHVqmb6IF/P+j4/vkVEud7So=
|
||||
github.com/gotoeasy/glang v0.20.0/go.mod h1:64nhmmfpAbCtFOcT5PFhiF2/jkoGJNUIoasBQVGTtR0=
|
||||
github.com/gotoeasy/glang v0.20.1 h1:GWZF0wS0zmURz4eSXNKuIJUZ1JT42i/w8BvBWzOp4lk=
|
||||
github.com/gotoeasy/glang v0.20.1/go.mod h1:64nhmmfpAbCtFOcT5PFhiF2/jkoGJNUIoasBQVGTtR0=
|
||||
github.com/gotoeasy/sego v1.0.1 h1:B51ViVIKZpw1NfQGIljTVPlFmwxS8UcLimBoKT8fKOg=
|
||||
github.com/gotoeasy/sego v1.0.1/go.mod h1:jISDCveFb3Hc8/wPIDIpNLtvk1QnWFPZSbI4+GPsVgA=
|
||||
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
|
||||
|
||||
589032
glc/ldb/tokenizer/dict.txt
589032
glc/ldb/tokenizer/dict.txt
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed dict.txt
|
||||
//go:embed dict.zip
|
||||
dictionary embed.FS
|
||||
)
|
||||
|
||||
@@ -23,9 +23,9 @@ func init() {
|
||||
// 默认字典,不存在时尝试从go:embed复制
|
||||
defaultDictFile := "/glogcenter/.dictionary/dict.txt"
|
||||
if !cmn.IsExistFile(defaultDictFile) {
|
||||
bts, err := dictionary.ReadFile("dict.txt")
|
||||
bts, err := dictionary.ReadFile("dict.zip")
|
||||
if err == nil {
|
||||
cmn.WriteFileBytes(defaultDictFile, bts)
|
||||
cmn.UnZipBytes(bts, defaultDictFile)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user