Documentation ¶
Overview ¶
Package buildattr implements support for interpreting the @if build attributes in CUE files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.