githubtemplate

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 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

func FindLegacy(rootDir string, name string) string

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

func FindNonLegacy

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