Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Experiment ¶
type Experiment struct {
// AnalyzerV2 enables the database-only analyzer mode (analyzer.database: only)
// which uses the database for all type resolution instead of parsing schema files.
AnalyzerV2 bool
}
Experiment holds the state of all experimental features. Add new experiments as boolean fields to this struct.
func ExperimentFromEnv ¶
func ExperimentFromEnv() Experiment
ExperimentFromEnv returns an Experiment initialized from the SQLCEXPERIMENT environment variable.
func ExperimentFromString ¶
func ExperimentFromString(val string) Experiment
ExperimentFromString parses a comma-separated list of experiment names and returns an Experiment with the appropriate flags set.
Experiment names can be prefixed with "no" to explicitly disable them. Unknown experiment names are silently ignored.
func (Experiment) Enabled ¶
func (e Experiment) Enabled() []string
Enabled returns a slice of all enabled experiment names.
func (Experiment) String ¶
func (e Experiment) String() string
String returns a comma-separated list of enabled experiments.
type Parser ¶
type Parser struct {
Experiment Experiment
}
Click to show internal directories.
Click to hide internal directories.