config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config provides configuration logic and constants for the application.

Index

Constants

View Source
const (
	// ProductName is the human-readable name of the application.
	ProductName = "typomat"
	// AppCommandName is the command-line name of the application.
	AppName = "typomat"
)

Variables

View Source
var (
	// ErrInit indicates a failure to initialize the app configuration.
	ErrInit = errors.New("failed to initialize configuration directory")
	// ErrCleanup indicates a failure to clean up old files.
	ErrCleanup = errors.New("failed to clean configuration directory")
)

Functions

func AppDir

func AppDir() string

AppDir returns the application directory path.

func CachedDbDir added in v0.3.0

func CachedDbDir() string

CachedDbDir returns the directory path where cached database files are stored.

func DbDir

func DbDir() string

DbDir returns the directory path where database files are stored.

func Init

func Init() error

Init initializes the configuration by setting up necessary directories and configuring the logger.

func PurgeCache

func PurgeCache() error

PurgeCache deletes all cached data stored in the database directory.

func TempDbDir added in v0.3.0

func TempDbDir() string

TempDbDir returns the directory path where temporary database files are stored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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