generator

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(outputScriptPath string, imports []string, funcs []finder.FunctionToCall, inputDir string, outputDir string) error

func RunTemplFmt

func RunTemplFmt(files []string, done chan<- struct{}) error

Run the fmt command

func RunTemplGenerate

func RunTemplGenerate(done chan<- struct{}) error

Run the generate command

Types

type InputData

type InputData struct {
	Imports         []string
	FilesToGenerate []StringedData
}

type StringedData

type StringedData struct {
	FuncToCall  string
	FilePath    string
	PackageName string
}

Jump to

Keyboard shortcuts

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