go-ls-tags

command
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: 2 Imported by: 0

README

Golang List Tags

This tool will find the Golang tags used within the project reliably using Go implementation instead of wonky bash scripts.

Usage

This tool is often used to search for tags in order to perform a Go build test:

go test \
  -tags "$(go run knative.dev/test-infra/tools/go-ls-tags@latest)" \
  -vet=off \
  -exec echo \
  ./...

Options

--extension

The extension to search for. Defaults to .go.

--exclude

The directories to exclude from the search. Defaults to vendor, third_party, hack, .git.

--directory

The directory to search in. Defaults to . (current directory).

--ignore-file

An ignore file used to filter out the tags. It is a newline separated list of tags to ignore. Defaults to ./.gotagsignore.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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