Documentation
¶
Index ¶
- Constants
- Variables
- func ReadIntN[T constraints.Integer](r io.Reader, size T) int
- func ReadN[T constraints.Integer](r io.Reader, size T) []byte
- func To2Bytes[T constraints.Integer](i T) []byte
- func To4Bytes[T constraints.Integer](i T) []byte
- type BaiduDef
- type Custom
- type DDdmg
- type DuoDB
- type Entry
- type Fcitx4Mb
- type Format
- type Jidian
- type JidianMb
- type Kafan
- type MsUDP
- type MswbLex
- type Template
- type Words
Constants ¶
View Source
const WORDS = 3
View Source
const WUBI = 2
Variables ¶
View Source
var ( ReadUint16 = util.ReadUint16 ReadUint32 = util.ReadUint32 )
View Source
var FormatList = make([]Format, 0, 20)
Functions ¶
func To2Bytes ¶
func To2Bytes[T constraints.Integer](i T) []byte
func To4Bytes ¶
func To4Bytes[T constraints.Integer](i T) []byte
Types ¶
type Custom ¶
type Custom struct { Template // contains filtered or unexported fields }
func NewBingling ¶
func NewBingling() *Custom
type Format ¶
type MswbLex ¶
type MswbLex struct { Template // contains filtered or unexported fields }
func NewMswbLex ¶
func NewMswbLex() *MswbLex
func (*MswbLex) LoadWordWeight ¶
func (d *MswbLex) LoadWordWeight()
type Template ¶
type Template struct { Name string // 名称 ID string // 唯一 ID CanMarshal bool // 是否可以序列化 HasRank bool // 是否有 Rank }
func (*Template) GetCanMarshal ¶
func (*Template) GetHasRank ¶
Click to show internal directories.
Click to hide internal directories.