package
0.0.0-20221117053239-6b27f02f729a
Repository: https://github.com/jimmc/gtrepgen.git
Documentation: pkg.go.dev
# Functions
FindAndReadAttributes finds the template and reads the attributes from it.
FindAndReadAttributesInto finds the template and reads the attributes from it into the specified destination.
FindTemplateInDirs finds the first readable template in the given list of directories.
New creates a Generator.
ReadDirFilesAttributes calls ReadDirFilesAttributesAs with a newDestPointer
* that creates an interface{}.
ReadDirFilesAttributesAs scans the given directory looking for files
* with the right filename extension.
ReadTemplateAttributesFromPath looks for our special start and end strings
* in the file at the specified path.
ReadTemplateAttributesFromPathInto looks for our special start and end strings
* in the file at the specified path.
ReadTemplateAttributesFromReader looks for our special start and end strings
* in the given stream.
ReadTemplateAttributesFromReaderInto looks for our special start and end strings
* in the given stream.
ReadTemplateAttributesFromString looks for our special start and end strings
* in the given string.
ReadTemplateAttributesFromStringInto looks for our special start and end strings
* in the given string.
# Variables
Now returns the current time.
# Structs
Generator provides a type that can generate output from either text or HTML templates from a literal string, a specific file path, or a named file from a reference directory.
TemplateAttributes holds the information for one file from a directory.