tagger

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExprTagger

type ExprTagger struct {
	Taggable
	// contains filtered or unexported fields
}

func NewExprTagger

func NewExprTagger(tagExprs []string) (*ExprTagger, error)

func (*ExprTagger) Tags

func (et *ExprTagger) Tags(filePath string) []string

type PlainTagger

type PlainTagger struct {
	Taggable
	// contains filtered or unexported fields
}

func NewPlainTagger

func NewPlainTagger(tags []string) (*PlainTagger, error)

func (*PlainTagger) Tags

func (pt *PlainTagger) Tags(filePath string) []string

type RegexpTagger

type RegexpTagger struct {
	Taggable
	// contains filtered or unexported fields
}

func NewRegexpTagger

func NewRegexpTagger(tagRegexps []string) (*RegexpTagger, error)

func (*RegexpTagger) Tags

func (rt *RegexpTagger) Tags(filePath string) []string

type Taggable

type Taggable interface {
	Tags(filePath string) []string
}

Jump to

Keyboard shortcuts

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