Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.102.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package config provides configuration management utilities for the CLI.

Index

Constants

View Source
const (
	// LuxDataDirVar is the environment variable for the Lux data directory
	LuxDataDirVar = "LUXD_DATA_DIR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsEnabled bool `json:"metricsEnabled"`
}

func New

func New() *Config

func (*Config) ConfigFileExists

func (*Config) ConfigFileExists() bool

func (*Config) ConfigValueIsSet

func (*Config) ConfigValueIsSet(key string) bool

func (*Config) GetConfigBoolValue

func (*Config) GetConfigBoolValue(key string) bool

func (*Config) GetConfigPath

func (*Config) GetConfigPath() string

GetConfigPath returns the path to the configuration file

func (*Config) GetConfigStringValue

func (*Config) GetConfigStringValue(key string) string

func (*Config) LoadNodeConfig

func (*Config) LoadNodeConfig() (string, error)

func (*Config) SetConfigValue

func (*Config) SetConfigValue(key string, value interface{}) error

Jump to

Keyboard shortcuts

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