web

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Method   string
	Route    string
	CallName string
}

type Def

type Def struct {
	Type string
	Name string
}

type Generator

type Generator struct {
	Module *gomod.Module
	Parser *parser.Parser
}

func (*Generator) GenerateFile

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

type State

type State struct {
	Imports []*imports.Import

	Actions   []*Action
	HasPublic bool
	HasView   bool

	// Show the welcome page
	ShowWelcome bool
}

func Load

func Load(fsys fs.FS, module *gomod.Module, parser *parser.Parser) (*State, error)

Jump to

Keyboard shortcuts

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