templates

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

templates describes templateMaker which receives a bunch of templates, expands these and logs all outcomes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplateMaker

func NewTemplateMaker(logger Logger) templateMaker

Types

type Logger

type Logger interface {
	Success(message string)
	Fail(message string)
	Log(message string)
}

type Template

type Template struct {
	Name       string
	InputPath  string
	OutputPath string
	Data       interface{}
}

Template represents template to expand by this package

Jump to

Keyboard shortcuts

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