runes

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Add

func (b *Builder) Add(s string)

func (*Builder) Build

func (b *Builder) Build() Dict

type Dict

type Dict map[rune]word.Code

func FromSlice

func FromSlice(xs []string) (*keytree.Tree, Dict, error)

func FromWalker

func FromWalker(w Walker) (*keytree.Tree, Dict, error)

func New

func New(ss []string) Dict

func (Dict) Code

func (d Dict) Code(r rune) word.Code

func (Dict) MarshalBinary

func (d Dict) MarshalBinary() ([]byte, error)

func (Dict) MarshalText

func (d Dict) MarshalText() ([]byte, error)

func (Dict) ReadFrom

func (d Dict) ReadFrom(r io.Reader) (int64, error)

func (Dict) UnmarshalBinary

func (d Dict) UnmarshalBinary(s []byte) error

func (Dict) UnmarshalText

func (d Dict) UnmarshalText(s []byte) error

func (Dict) Word

func (d Dict) Word(s string) (word.Word, error)

func (Dict) WriteTo

func (d Dict) WriteTo(w io.Writer) (int64, error)

type Walker

type Walker interface {
	Walk(func(string) error) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL