engine

package
v0.0.0-...-70a840a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB map[int]string
)

Functions

func CreateIndex

func CreateIndex() index

func LoadIndex

func LoadIndex(idx index) index

func SaveIndex

func SaveIndex(idx index)

Types

type Document

type Document struct {
	Title string `xml:"title"`
	URL   string `xml:"url"`
	Text  string `xml:"abstract"`
	ID    int
}

func LoadDocuments

func LoadDocuments(path string) ([]Document, error)

Jump to

Keyboard shortcuts

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