yamldoc

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(in string) (string, error)

Normalize text to aid in the filtering process. In particular, we remove diacritics, "ö" becomes "o". Title that Mn is the unicode key for nonspacing marks.

Types

type YAMLDocument

type YAMLDocument struct {
	Object *kube.Object

	// Value we filter against. This exists so that we can maintain positions
	// of filtered items if titles are edited while a filter is active. This
	// field is ephemeral, and should only be referenced during filtering.
	FilterValue string

	Body  string
	Title string
	Desc  string
}

func (*YAMLDocument) BuildFilterValue

func (m *YAMLDocument) BuildFilterValue()

Generate the value we're doing to filter against.

Jump to

Keyboard shortcuts

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