generator

package
v0.0.0-...-a28c2ab Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	Interface     *wit.Interface
	Methods       map[string]*wit.Function
	Records       []*wit.TypeDef
	ImportedTypes []*wit.TypeDef
}

func NewCtx

func NewCtx(iface *wit.Interface) *Ctx

func (*Ctx) Generate

func (c *Ctx) Generate(w io.Writer) error

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(pkg *wit.Package) *Generator

func (*Generator) GenerateInterfaces

func (gen *Generator) GenerateInterfaces(ifaceNames ...string) error

Jump to

Keyboard shortcuts

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