Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface {
UserHomeDir() (string, error)
ReadFile(path string) ([]byte, error)
WriteFile(path string, data []byte, perm os.FileMode) error
MkdirAll(path string, perm os.FileMode) error
}
FileSystem abstracts file operations for testability.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles state loading and saving with injected dependencies.
func NewManager ¶
func NewManager(fs FileSystem) *Manager
NewManager creates a new Manager with the provided filesystem.
Click to show internal directories.
Click to hide internal directories.