Back to godoc.org

Package template

v0.2.7
Latest Go to latest

The highest tagged major version is .

Published: Mar 23, 2020 | License: MPL-2.0 | Module: xorkevin.dev/governor

Index

type Service

type Service interface {
	governor.Service
	Template
}

func New

func New() Service

New creates a new Template service

type Template

type Template interface {
	Execute(templateName string, data interface{}) (string, error)
	ExecuteHTML(filename string, data interface{}) (string, error)
}

Template is a templating service

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier