searcher

package
v0.0.0-...-8e4f736 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

简易检索器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Searcher

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

func New

func New(db ...map[string]string) *Searcher

func (*Searcher) SearchByKey

func (p *Searcher) SearchByKey(query string) <-chan string

关键字查询: 返回管道

func (*Searcher) SearchByKeyAll

func (p *Searcher) SearchByKeyAll(query string) []string

关键字查询: 返回列表

func (*Searcher) SearchByRegexp

func (p *Searcher) SearchByRegexp(query *regexp.Regexp) <-chan string

正则查询: 返回管道

func (*Searcher) SearchByRegexpAll

func (p *Searcher) SearchByRegexpAll(query *regexp.Regexp) []string

正则查询: 返回列表

Jump to

Keyboard shortcuts

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