tags

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UNIX_PLATFORM_RANKING = []string{
	"linux",
	"openbsd",
	"freebsd",
	"netbsd",
	"darwin",
	"solaris",
	"illumos",
	"dragonfly",
	"android",
	"ios",
	"hurd",
	"aix",
}

All the unix-like platforms, listed in order of build priority Must match 'unixOS' list below

Functions

func FindPackageName added in v1.1.2

func FindPackageName(baseDir string, goFiles []string) string

func ParseFileHeader

func ParseFileHeader(content []byte) (constraint.Expr, error)

func ParseFileName

func ParseFileName(name string) (nametag *constraint.TagExpr, ok bool)

Types

type All

type All struct{}

type Constraint

type Constraint interface{}

func Parse

func Parse(name string, src []byte, goos string, buildtags map[string]bool) Constraint

type Ignored

type Ignored struct{}

type Platforms

type Platforms map[string]bool

type Supported

type Supported struct{}

Jump to

Keyboard shortcuts

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