Documentation
¶
Overview ¶
Package helpers implements utility routines for working with the filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirectoryContent ¶
CopyDirectoryContent replaces dst with the contents of src, removing dst first if it exists and creating it fresh. Returns an error if src does not exist or if src is not a directory.
func CopyFile ¶
CopyFile copies a file from src to dst, overwriting an existing file if present. Returns an error if src does not exist, or if src is a directory.
func JoinWithConjunction ¶ added in v0.14.0
JoinWithConjunction joins a slice of strings into a human-readable list, separating items with commas and prefixing the last item with conjunction (e.g., "and" or "or"). Returns an empty string for an empty slice, the single value for a one-element slice, and two values joined by the conjunction without commas. Returns an error if conjunction is blank.
Types ¶
This section is empty.