template

package
v0.0.0-...-e903210 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed all:templates/*
	File embed.FS
)

Functions

func TemplateToDestination

func TemplateToDestination(file string, info interface{}, destination string) error

TemplateToDestination reads a template from the embedded file system and writes it to the destination. If it's a folder, it recursively writes its contents to the destination. If it's a file, it writes that file to the destination.

func TemplateToDestinationThrowError

func TemplateToDestinationThrowError(file string, info interface{}, destination string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL