presets

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package presets provides built-in named classification rule bundles that a repo can opt into without hand-writing regexes.

Index

Constants

This section is empty.

Variables

View Source
var Names = []string{"iam"}

Names lists available preset names (for error messages).

Functions

func Get

func Get(name, iconOverride string, emitAttributes []string) (classify.Rule, bool)

Get returns the rule bundle for name. iconOverride replaces the preset's default glyph when non-empty; emitAttributes is carried onto the rule. ok is false for unknown names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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