double_array

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: MIT Imports: 8 Imported by: 0

README

白ヤギDA

GoDoc

このプロジェクトについて

このプロジェクトは白ヤギコーポレーションで開発したダブル配列の実装です。

特徴

  • 文字ベースTrie
  • MessagePackでシリアライズ可能

注意

go modulesを使っています。

License

MIT

Documentation

Index

Constants

View Source
const (
	ItemNotFound = ItemID(-1)
)

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(obj DoubleArray, id ItemID, inverse InverseID) string

Types

type DoubleArray

type DoubleArray interface {
	Serialize() ([]byte, error)
	Lookup(key []rune) ItemID
	Scan(text []rune, callback func(i, j int, id ItemID))
}

func NewDoubleArray

func NewDoubleArray(data []Item) (DoubleArray, error)

func NewDoubleArrayFromBytes

func NewDoubleArrayFromBytes(data []byte) (DoubleArray, error)

type InverseID

type InverseID map[int32]rune

func ToInverseID

func ToInverseID(da DoubleArray) InverseID

type Item

type Item []rune

type ItemID

type ItemID int32

type RuneID

type RuneID map[rune]int32

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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