package
0.2.14
Repository: https://github.com/osteele/gojekyll.git
Documentation: pkg.go.dev

# Functions

ApplyToHTMLText applies a filter only to the text within an HTML document.
CopyFileContents copies the file contents from src to dst.
FollowDots applied to a property list ["a", "b", "c"] is equivalent to the Liquid data expression "data.a.b.c", except without special treatment of "first", "last", and "size".
IsNotEmpty returns a boolean indicating whether the error is known to report that a directory is not empty.
LeftPad left-pads s with spaces to n wide.
MakeStringSet creates a characteristic function map that tests for presence in an array.
MatchList implement Jekyll include: and exclude: configurations.
MergeStringMaps creates a new variable map that merges its arguments, from first to last.
MustAbs is like filepath.Abs, but panics instead of returning an error.
MustRel is like filepath.Rel, but panics if the path cannot be relativized.
NewPathError returns an os.PathError that formats as the given text.
ParseFilenameDateTitle returns the date for a filename that uses Jekyll post convention.
PostfixWalk is like filepath.Walk, but visits each directory after visiting its children instead of before.
ReadFileMagic returns the first four bytes of the file, with final '\r' replaced by '\n'.
RemoveEmptyDirectories recursively removes empty directories.
SafeReplaceAllStringFunc is like regexp.ReplaceAllStringFunc but passes an an error back from the replacement function.
SearchStrings returns a bool indicating whether array contains the string.
Slugify replaces each sequence of non-alphanumerics by a single hyphen.
StringArrayContains returns a bool indicating whether the array contains the string.
StringArrayToMap creates a map for use as a set.
Titleize splits at ` `, capitalizes, and joins.
TrimExt returns a path without its extension, if any.
UnmarshalYAMLInterface is a wrapper for yaml.Unmarshal that knows how to unmarshal maps and lists.
URLJoin interpolates paths with "/", skipping empty paths and avoiding "//".
URLPathClean removes internal // etc.
VisitCreatedFile calls os.Create to create a file, and applies w to it.
WrapError returns an error decorated with a message.
WrapPathError returns an error that will print with a path.\ It wraps its argument if it is not nil and does not already provide a path.

# Interfaces

A PathError is an error with a source path.
A WrappedError decorates an error with a message.

# Type aliases

StringList adds methods to []string.
A StringSet is a set of strings, represented as a map.