Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileBuildConstraints ¶
func GetFileBuildConstraints(filename string) (constraint.Expr, error)
GetFileBuildConstraints reads filename and returns a single constraint.Expr representing the file's //go:build tag or combination of legacy // +build tags. If no build tag is found, nil is returned.
func GetFilesBuildConstraints ¶
func GetFilesBuildConstraints(filenames []string) (map[string]constraint.Expr, error)
GetFilesBuildConstraints reads each file in filenames and returns a map keyed by filenames. Each value is a single constraint.Expr representing the file's build constraints (either a single go:build tag or combination of +build tags). Files with no build constraints will have a nil value.
Types ¶
Click to show internal directories.
Click to hide internal directories.