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.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 8 hours ago –
Tools for package owners.