Documentation ¶ Index ¶ func Process(fsys embed.FS, srcDir, dstDir string, data Data) error type Data Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Process ¶ func Process(fsys embed.FS, srcDir, dstDir string, data Data) error Process reads all files from the specified directory within the embedded filesystem, executes them as text/templates with the provided data, and writes the results to the destination directory, preserving the directory structure. Types ¶ type Data ¶ type Data struct { Name string } Data holds the template data passed to each file. Source Files ¶ View all Source files templater.go Click to show internal directories. Click to hide internal directories.