search

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func New

func New() (*Search, error)

func (*Search) Get

func (s *Search) Get(id uint) Stop

func (*Search) Search

func (s *Search) Search(term string, limit int) []Stop

func (*Search) SearchExact

func (s *Search) SearchExact(term string, limit int) []Stop

type Stop

type Stop struct {
	Name      string
	Id        uint
	Score     uint
	Tram, Bus bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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