githubtemplate

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractContents

func ExtractContents(filePath string) []byte

ExtractContents returns the template contents without the YAML front-matter

func ExtractName

func ExtractName(filePath string) string

ExtractName returns the name of the template from YAML front-matter

func FindLegacy added in v0.10.0

func FindLegacy(rootDir string, name string) string

FindLegacy returns the file path of the default(legacy) template

func FindNonLegacy added in v0.10.0

func FindNonLegacy(rootDir string, name string) []string

FindNonLegacy returns the list of template file paths from the template folder (according to the "upgraded multiple template builder")

Types

This section is empty.

Jump to

Keyboard shortcuts

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