basesrepo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_JSON_FILENAME string = "recommended.json"
)

Variables

This section is empty.

Functions

func GetFileMap

func GetFileMap(files []TemplateFile) (map[string]string, []string)

GetFileMap returns a map of file names to paths and a slice of file names.

Types

type BasesRepo

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

func NewBasesRepo

func NewBasesRepo(fs embed.FS) *BasesRepo

func (*BasesRepo) ReadFile

func (b *BasesRepo) ReadFile(path string) ([]byte, error)

ReadFile reads a file from the file system.

func (*BasesRepo) TemplateFiles

func (b *BasesRepo) TemplateFiles() ([]TemplateFile, error)

type TemplateFile

type TemplateFile struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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