processor

package
v0.2.663 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTemplates added in v0.2.334

func FindTemplates(srcPath string, output chan<- string) (err error)

func Process

func Process(dir string, f func(fileName string) error, workerCount int, results chan<- Result)

func ProcessChannel added in v0.2.334

func ProcessChannel(templates <-chan string, dir string, f func(fileName string) error, workerCount int, results chan<- Result)

Types

type Result

type Result struct {
	FileName string
	Duration time.Duration
	Error    error
}

Jump to

Keyboard shortcuts

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