finder

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentConfig added in v0.6.0

type CommentConfig struct {
	LineComment []string
	BlockStart  []string
	BlockEnd    []string
}

type Finder

type Finder struct {
	// CommentConfig maps the filetype (e.g. ".go") to the matching CommentConfig.
	CommentConfig map[string]CommentConfig
	// contains filtered or unexported fields
}

Finder implements the TagFinder interface in a language-generic way. It takes into account block comments (e.g. /* .... */) and line comments (e.g. // ...). You can pass alternative comment indicators to support other languages.

func (*Finder) Find

func (f *Finder) Find(filename string, reader io.Reader) ([]tag.Raw, error)

Jump to

Keyboard shortcuts

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