6f278829077fc91296c0d46fea7827d85f925c51
Modern Go toolchains (available at the base image) can automatically
install the required version of Go based on the `go.mod` file, so we can
remove the `actions/setup-go` step from the workflow.
We keep the minimum required Go version in the `go.mod` file for broad
compatibility (1.19), but we use a more recent version when interacting
with the code (e.g. `go test` in the existing update.yml workflow).
go get toolchain@latest
https://go.dev/blog/toolchain#:~:text=Or%20if%20you%20want%20to%20start%20using,toolchain%20version%20using%20the%20GOTOOLCHAIN%20environment%20variable.
cedict
An always up-to-date copy of the CC-CEDICT, a Chinese to English word dictionary with pronunciation in pinyin for the Chinese characters.
The original dictionary is available as a plain text file. In addition to that, this repository is a Go module, which allows for easy consumption of the dictionary bytes from a Go program.
package main
import (
"os"
"github.com/rhcarvalho/cedict"
)
func main() {
os.Stdout.Write(append(cedict.Bytes[:200], []byte("...\n")...))
}
The dictionary is automatically updated daily (if there are changes upstream).
License
The original CC-CEDICT by MDBG is licensed under CC BY-SA 4.0.
The remaining content of this repository is licensed under the Apache License 2.0.
Description
Always up-to-date copy of the CC-CEDICT, a Chinese to English dictionary
28 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
73.7%
Awk
26.3%
