productmap

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ROOT_DIRECTORY = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFile

func NewFile(filePath string, tmpl string) File

func (File) Content

func (f File) Content() (string, error)

func (File) Data

func (f File) Data() any

func (File) FilePath added in v0.0.2

func (f File) FilePath() string

func (File) Template

func (f File) Template() string

func (File) WithData

func (f File) WithData(data any) File

func (File) WithFuncMap added in v0.0.3

func (f File) WithFuncMap(fm template.FuncMap) File

func (File) Write

func (f File) Write(w io.Writer) error

type ProductMap

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

func NewProductMap

func NewProductMap() ProductMap

func (*ProductMap) Exclude added in v0.0.3

func (pm *ProductMap) Exclude(excludedFiles map[string]struct{})

func (ProductMap) Exists

func (dir ProductMap) Exists(filePath string) bool

func (*ProductMap) Insert

func (pm *ProductMap) Insert(file File) error

func (*ProductMap) Walk

func (pm *ProductMap) Walk(fn WalkFn) error

func (*ProductMap) WithFuncMap added in v0.0.3

func (pm *ProductMap) WithFuncMap(fm template.FuncMap)

type WalkFn

type WalkFn func(directoryName string, f File) error

Jump to

Keyboard shortcuts

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