go-buildtags

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

README

Go Build Tags Enumerator

Go Reference

Installation

go-buildtags requires Go 1.16.

go install github.com/perillo/go-buildtags@latest

Purpose

go-buildtags parses, categorizes and shows all build tags specified in a package.

Build tags are categorizes as:

  • GOOS
  • GOARCH
  • release-tag
  • special-tag
  • build-tag

Note that a tag count represents how many times a tag has been specified in a +build line, a go:build line or in a file name.

Usage

go-buildtags [packages]

Invoke go-buildtags with one or more import paths. go-buildtags uses the same import path syntax as the go command and therefore also supports relative import paths like ./.... Additionally the ... wildcard can be used as suffix on relative and absolute file paths to recurse into them.

By default, go-buildtags uses the go command installed on the system, but it is possible to specify a different version using the GOCMD environment variable.

Documentation

Overview

go-buildtags parses, categories and shows all build tags in a package.

Directories

Path Synopsis
internal
invoke
Package invoke provides support for invoking a command.
Package invoke provides support for invoking a command.

Jump to

Keyboard shortcuts

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