template

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeTemplateManager

type FakeTemplateManager struct {
	// contains filtered or unexported fields
}

func NewFakeTemplateManager

func NewFakeTemplateManager() *FakeTemplateManager

func (FakeTemplateManager) IsTrait

func (m FakeTemplateManager) IsTrait(key string) bool

func (FakeTemplateManager) LoadTemplate

func (m FakeTemplateManager) LoadTemplate(key string) string

type Manager

type Manager interface {
	IsTrait(key string) bool
	LoadTemplate(key string) (tmpl string)
}

func Load

func Load() (Manager, error)

type Template

type Template struct {
	Captype types.CapType
	Raw     string
}

Jump to

Keyboard shortcuts

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