search

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TermSep         = "__term@sep__"
	SearchMarkLeft  = "__@mark__"
	SearchMarkRight = "__mark@__"
)

Variables

This section is empty.

Functions

func EncloseHighlighting

func EncloseHighlighting(text string, keywords []string, openMark, closeMark string, caseSensitive bool) (ret string)

func MarkText

func MarkText(text string, keyword string, beforeLen int, caseSensitive bool) (pos int, marked string)

func SplitKeyword

func SplitKeyword(keyword string) (keywords []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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