package
1.16.0
Repository: https://github.com/dagu-org/dagu.git
Documentation: pkg.go.dev

# Functions

EnsureYAMLExtension adds .yaml extension if not present if it has .yml extension, replace it with .yaml.
FileExists returns true if file exists.
IsDir returns true if path is a directory.
IsFileWithExtension is a more generic function that checks if a file has any of the provided extensions.
IsYAMLFile checks if a file has a valid YAML extension (.yaml or .yml).
MustGetUserHomeDir returns current working directory.
MustGetwd returns current working directory.
MustTempDir returns temporary directory.
NewFileResolver creates a new FileResolver instance.
OpenOrCreateFile opens file or creates it if it doesn't exist.
SafeName converts a string to a safe filename.
TruncString TurnString returns truncated string.

# Constants

MaxSafeNameLength is the maximum length of a safe filename.

# Variables

No description provided by the author
No description provided by the author
ValidYAMLExtensions contains valid YAML extensions.

# Structs

FileNotFoundError provides detailed information about file search failure.
FileResolver handles file path resolution across multiple locations.