trpipe

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Data []byte
	// contains filtered or unexported fields
}

func (*File) Path

func (f *File) Path() string

type Pipeline

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

func New

func New(log log.Log) *Pipeline

func (*Pipeline) Add

func (p *Pipeline) Add(from, to string, fn func(file *File) error)

func (*Pipeline) Run

func (p *Pipeline) Run(fromPath, toExt string, code []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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