files

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

ConfigDir returns the project's config/secrets directory. Dev: ~/.{project}/dev/etc/ Prod: ~/.{project}/etc/

func DataDir

func DataDir() string

DataDir returns the project's persistent data directory, creating it if needed. Dev: ~/.{project}/dev/var/ Prod: ~/.{project}/var/

func DockerDir

func DockerDir() string

func EnsureDir

func EnsureDir(path string) (string, error)

EnsureDir ensures a directory exists, creating it if needed. Returns the absolute path to the directory.

func LoadEnv

func LoadEnv(dir string) error

LoadEnv reads KEY=VALUE lines from <dir>/env and sets them in the process environment (only if the variable is not already set).

func ProjectHome

func ProjectHome() string

ProjectHome returns the project's home directory (~/.{project}). Panics if the project name has not been set via constants.SetProjectName.

func VarDir

func VarDir() string

VarDir returns the runtime data directory. Dev: ~/.{project}/dev/var/ Prod: ~/.{project}/var/

Types

This section is empty.

Jump to

Keyboard shortcuts

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