view

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(state *State) ([]byte, error)

Generate the view

Types

type Compiler

type Compiler struct {
	Flag      *command.Flag
	Module    *gomod.Module
	Transform *transform.Map
}

func (*Compiler) Compile

func (c *Compiler) Compile(fsys fs.FS, ctx context.Context) ([]byte, error)

func (*Compiler) GenerateFile

func (c *Compiler) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error

func (*Compiler) Parse

func (c *Compiler) Parse(fsys fs.FS, ctx context.Context) (*State, error)

type State

type State struct {
	Imports []*imports.Import
	Flag    *command.Flag
	Embeds  []*embed.File
}

Jump to

Keyboard shortcuts

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