Documentation ¶ Index ¶ func Serve(tr transpiler.Interface, fsys fs.FS, file *genfs.File) error func TranspileFile(fsys fs.FS, inputPath, toExt string) ([]byte, error) type File type Interface type Transpiler func New() *Transpiler 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 Source Files ¶ View all Source files transpiler.go Click to show internal directories. Click to hide internal directories.