package cueexperiment
import "cuelang.org/go/internal/cueexperiment"
Index ¶
Variables ¶
var Flags struct { // EvalV3 enables the new evaluator. The new evaluator addresses various // performance concerns. EvalV3 bool `envflag:"default:true"` // Embed enables file embedding. // TODO(v0.14): deprecate this flag to forbid disabling this feature. Embed bool `envflag:"default:true"` // Enable topological sorting of struct fields. // TODO(v0.14): deprecate this flag to forbid disabling this feature. TopoSort bool `envflag:"default:true"` // CmdReferencePkg requires referencing an imported tool package to declare tasks. // Otherwise, declaring tasks by setting "$id" or "kind" string fields is allowed. CmdReferencePkg bool // Modules was an experiment which ran from early 2023 to late 2024. Modules bool `envflag:"deprecated,default:true"` // YAMLV3Decoder was an experiment which ran from early 2024 to late 2024. YAMLV3Decoder bool `envflag:"deprecated,default:true"` // DecodeInt64 was an experiment which ran from late 2024 to mid 2025. DecodeInt64 bool `envflag:"deprecated,default:true"` }
Flags holds the set of global CUE_EXPERIMENT flags. It is initialized by Init.
When adding, deleting, or modifying entries below, update cmd/cue/cmd/help.go as well for `cue help environment`.
Functions ¶
func Init ¶
func Init() error
Init initializes Flags. Note: this isn't named "init" because we don't always want it to be called (for example we don't want it to be called when running "cue help"), and also because we want the failure mode to be one of error not panic, which would be the only option if it was a top level init function.
Source Files ¶
exp.go
- Version
- v0.13.0 (latest)
- Published
- May 22, 2025
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 32 minutes ago –
Tools for package owners.