embed

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 10 Imported by: 0

README

embed

Embed is a package designed to embed your .gohtml files into the final executable.

The package expects the program to use the github.com/golang-standards/project-layout structure.

Documentation

Index

Constants

View Source
const DefaultInput = "/web/templates"
View Source
const DefaultOutput = "/internal/template/templates.go"

Variables

This section is empty.

Functions

func Generate

func Generate(root, input, output string, skip []string)

Types

type Template

type Template struct {
	Name     string
	Title    string
	Data     string
	Generate bool
}

type Templates added in v0.1.1

type Templates map[string]Template

Jump to

Keyboard shortcuts

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