Rodolfo Carvalho 6f27882907 Bump Go version and drop action/setup-go (#9)
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.
2026-08-01 11:15:17 +02:00
2022-09-09 03:36:04 +02:00
2022-09-02 11:34:55 +02:00
2022-09-02 11:34:55 +02:00
2026-07-31 11:20:13 +00:00
2022-09-09 10:37:37 +02:00

Update CC-CEDICT Go Reference

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.

MDBG Chinese-English dictionary

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.

S
Description
Always up-to-date copy of the CC-CEDICT, a Chinese to English dictionary
Readme Apache-2.0
28 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 73.7%
Awk 26.3%