internal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TEMPLATES = "templates"

Variables

This section is empty.

Functions

func RootPath

func RootPath() (string, error)

Types

type Data

type Data struct {
	Key        string
	Desciption string
}

type File

type File struct {
	Template string
	Path     string
}

type Template

type Template struct {
	Template   *template.Template
	Desciption string
	Arguments  []Data
}

type Templates

type Templates map[string]Template

func LoadTemplates

func LoadTemplates(dir string, writeFile func(tmpl string, path string)) (Templates, error)

Jump to

Keyboard shortcuts

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