package buildattr
import "cuelang.org/go/internal/buildattr"
Package buildattr implements support for interpreting the @if build attributes in CUE files.
Index ¶
- func ShouldBuildFile(f *ast.File, tagIsSet func(key string) bool) (bool, *ast.Attribute, errors.Error)
- func ShouldIgnoreFile(f *ast.File) bool
Functions ¶
func ShouldBuildFile ¶
func ShouldBuildFile(f *ast.File, tagIsSet func(key string) bool) (bool, *ast.Attribute, errors.Error)
ShouldBuildFile reports whether a File should be included based on its attributes. It uses tagIsSet to determine whether a given attribute key should be treated as set.
It also returns the build attribute if one was found.
func ShouldIgnoreFile ¶
ShouldIgnoreFile reports whether a File contains an @ignore() file-level attribute and hence should be ignored.
Source Files ¶
buildattr.go
- Version
- v0.10.0-rc.1
- Published
- Aug 7, 2024
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 53 minutes ago –
Tools for package owners.