ui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCost = &Cost{
	Del:  10,
	Ins:  1,
	Subs: 10}

Functions

func Levenshtein

func Levenshtein(needle string, hays string, cost *Cost) int

Types

type Box

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

func NewBox

func NewBox(m *model.Model, svr *server.Server, client *client.Docker) *Box

func (*Box) Draw

func (b *Box) Draw()

func (*Box) Init

func (b *Box) Init() error

func (*Box) PrintLn

func (b *Box) PrintLn(y int, msg string)

func (*Box) Run

func (b *Box) Run() error

func (*Box) Select

func (b *Box) Select()

func (*Box) ThrowError

func (b *Box) ThrowError(err error)

type ByDistance

type ByDistance []*Entry

func (ByDistance) Len

func (s ByDistance) Len() int

func (ByDistance) Less

func (s ByDistance) Less(i, j int) bool

func (ByDistance) Swap

func (s ByDistance) Swap(i, j int)

type Cost

type Cost struct {
	Del, Ins, Subs int
}

type Entry

type Entry struct {
	Distance  int
	Isolation *model.Isolation
}

Jump to

Keyboard shortcuts

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