code

package
v0.0.0-...-179ea12 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGenerator

type CodeGenerator interface {
	Generate([]model.Function, io.Writer) error
}

CodeGenerator describes the behaviour of a code generator.

type GoCodeGenerator

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

GoCodeGenerator is a Go-specific implementation of CodeGenerator.

func NewGoCodeGenerator

func NewGoCodeGenerator() (*GoCodeGenerator, error)

NewGoCodeGenerator returns a pointer to a new instance of GoCodeGenerator.

func (*GoCodeGenerator) Generate

func (cg *GoCodeGenerator) Generate(functions []model.Function, w io.Writer, pkg string) error

Jump to

Keyboard shortcuts

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