transformers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsbuildTransformer

type EsbuildTransformer struct {
	Loader api.Loader
}

func (*EsbuildTransformer) Transform

func (e *EsbuildTransformer) Transform(input string) (string, error)

type TransformationConfig

type TransformationConfig struct {
	RawData    string
	Transform  func(string) (string, error)
	MarkerName string
}

type Transformer

type Transformer interface {
	// Transform processes the input data and returns transformed bytes or an error.
	Transform(cfg TransformationConfig) ([]byte, error)
}

Transformer defines the interface for data transformation operations.

Jump to

Keyboard shortcuts

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