buildattr

package
v0.10.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

func ShouldIgnoreFile(f *ast.File) bool

ShouldIgnoreFile reports whether a File contains an @ignore() file-level attribute and hence should be ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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