config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const NakedIntCommand = "view"

NakedIntCommand defines which command to run when using naked int invocation (e.g., padz 2) Valid values: "view" or "open"

Variables

This section is empty.

Functions

func ResetConfig

func ResetConfig()

ResetConfig resets the global configuration to default

func SetConfig

func SetConfig(cfg *Config)

SetConfig sets the global configuration

Types

type Config

type Config struct {
	FileSystem filesystem.FileSystem
	DataPath   string // Base path for data storage
}

Config holds the application configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration for production use

func GetConfig

func GetConfig() *Config

GetConfig returns the global configuration

func TestConfig

func TestConfig() *Config

TestConfig returns a configuration suitable for testing

Jump to

Keyboard shortcuts

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