repositories

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilePermission      = 0644
	DirectoryPermission = 0755
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateFile

type TemplateFile struct {
	Path    string
	Content []byte
}

type TemplateRepository

type TemplateRepository interface {
	ListTemplates() ([]string, error)
	AddTemplate(filename string, content []byte, overwrite bool) (templateFilename string, overwritten bool, err error)
	FindTemplate(filename string) (*TemplateFile, error)
}

func NewTemplateRepository

func NewTemplateRepository(templateDir string) TemplateRepository

Jump to

Keyboard shortcuts

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