tags

package
v0.0.0-...-e71f8c3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultExtension is a default extension for Go source files.
	DefaultExtension = "go"
	// DefaultIgnoreFile is a default name of ignore file, that can be used to
	// ignore Go build tags.
	DefaultIgnoreFile = ".gotagsignore"
)

Variables

View Source
var DefaultExcludes = []string{"vendor", "third_party", "hack", ".git"}

DefaultExcludes is list of default excludes to be used.

View Source
var ErrCantListTags = errors.New("cannot list tags")

ErrCantListTags when tags can't be listed.

Functions

This section is empty.

Types

type Lister

type Lister struct {
	Directory  string
	IgnoreFile string
	Extension  string
	Exclude    []string
	Sort       bool
}

Lister can list tags of Go source files.

func (Lister) List

func (l Lister) List(ctx context.Context) ([]string, error)

List all used Go build tags, or errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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