transpiler

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(tr transpiler.Interface, fsys fs.FS, file *genfs.File) error

func TranspileFile

func TranspileFile(fsys fs.FS, inputPath, toExt string) ([]byte, error)

TranspileFile transpiles a file from one extension to another. It assumes the transpiler generator is hooked up and serving from the transpiler directory.

Types

type File

type File = transpiler.File

type Interface

type Interface = transpiler.Interface

type Transpiler

type Transpiler = transpiler.Transpiler

func New

func New() *Transpiler

Jump to

Keyboard shortcuts

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