Top 5.0% forks on proxy.golang.org
proxy.golang.org : github.com/hermanschaaf/cedict
Package cedict provides a parser / tokenizer for reading entries from the CEDict Chinese dictionary project. Tokenizing is done by creating a CEDict for an io.Reader r. It is the caller's responsibility to ensure that r provides a CEDict-formatted dictionary. Given a CEDict c, the dictionary is tokenized by repeatedly calling c.NextEntry(), which parses until it reaches the next entry, or an error if no more entries are found: To retrieve the current entry, the Entry method can be called. There is also a lower-level API available, using the bufio.Scanner Scan method. Using this lower-level API is the recommended way to read comments from the CEDict, should that be necessary.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/hermanschaaf/cedict
License: BSD-3-Clause
Latest release: over 10 years ago
First release: over 10 years ago
Namespace: github.com/hermanschaaf
Stars: 13 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago