cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Load 加载缓存

func Save

func Save(c map[string][]string) (err error)

Save 保存缓存

Types

type Matched

type Matched struct {
	Text    string
	Indexes map[int]string // map[index]key
}

Matched 被匹配到的结果

func Search(keys []string) (results []Matched)

Search 搜索

func (Matched) Fmt

func (m Matched) Fmt() (fmt string, args []interface{})

Fmt 格式化后的文本

Jump to

Keyboard shortcuts

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