gomigemo

module
v0.0.0-...-2cc85a8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT

README

Go/Migemo module

PkgGoDev GoDoc Actions/Go Go Report Card

Usage

To load dictionary files from file system:

// Import migemo package.
import "github.com/koron/gomigemo/migemo"

// Load dictionary files.
dict, err := migemo.LoadDefault()

// Compile to get *regexp.Regexp.
re, err := migemo.Compile(dict, "aiueo")

To embedded dictionary to the executable file:

// Import migemo and embedict package.
import (
    "github.com/koron/gomigemo/embedict"
    "github.com/koron/gomigemo/migemo"
)

// Load embedded dictionary.
dict, err := embedict.Load()

// Compile to get *regexp.Regexp.
re, err := migemo.Compile(dict, "aiueo")

LICENSE

Distributed under MIT License, except for _dict/SKK-JISYO.utf-8.L and embedict/bindata.go which is GPL.

See LICENSE.

Directories

Path Synopsis
cmd
internal
cli
rpc

Jump to

Keyboard shortcuts

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