gocuelang.org/go/internal/cueexperiment Index | Files

package cueexperiment

import "cuelang.org/go/internal/cueexperiment"

Index

Variables

var Flags struct {
	Modules bool `envflag:"default:true"`

	// YAMLV3Decoder swaps the old internal/third_party/yaml decoder with the new
	// decoder implemented in internal/encoding/yaml on top of yaml.v3.
	YAMLV3Decoder bool `envflag:"default:true"`

	// EvalV3 enables the new evaluator. The new evaluator addresses various
	// performance concerns.
	EvalV3 bool

	// Embed enabled file embedding.
	Embed bool
}

Flags holds the set of 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.10.1
Published
Oct 22, 2024
Platform
windows/amd64
Imports
2 packages
Last checked
52 minutes ago

Tools for package owners.