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

config

package
v1.0.80 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataDir string
)

Functions

func InitConfig

func InitConfig() error

Types

type Config

type Config struct {
	ConfigBaseDir  string
	ConfigFileName string
	ConfigFilePath string
	Loaded         bool
	ConfigData     ConfigData
}

func GetConfig

func GetConfig() *Config

func (*Config) LoadConfigData

func (config *Config) LoadConfigData() error

func (*Config) SaveConfigData

func (config *Config) SaveConfigData() error

func (*Config) SetDefaultValues

func (config *Config) SetDefaultValues()

type ConfigData

type ConfigData struct {
	Version string `json:"version"`
	Flags   struct {
		DisablePurgeAccountData bool `json:"disablePurgeAccountData"`
	}
}

func GetConfigData

func GetConfigData() (*ConfigData, error)

Jump to

Keyboard shortcuts

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