template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() []string

List available templates

Types

type Template

type Template struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	FileTypes   []string `json:"filetypes"`
	Patterns    []string `json:"patterns"`
}

Template represents a search profile like gf

func Load

func Load(templateName string) (*Template, error)

Load loads a template by name from user directory or embedded defaults

func (*Template) Apply

func (t *Template) Apply(input string, output string) error

Apply applies a template to an input file

Jump to

Keyboard shortcuts

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