internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

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

type Config

type Config struct {
	Files       []string
	RequiredTag string
}

func GetConfig

func GetConfig() (Config, error)

GetConfig returns Config based on the command line arguments and `.go` files found at the specified path or

Jump to

Keyboard shortcuts

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