gen

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(ctx context.Context, req FileRequest) ([]byte, error)

func GenerateZip

func GenerateZip(ctx context.Context, req ZipRequest) error

Types

type FileRequest

type FileRequest struct {
	// uuid of the current execution
	ExecutionUUID string

	// full path of the file to generate
	OutputFile string

	// Template name to use
	TemplateName string

	// Data will be passed to the template
	Data any

	// Funcs extra functions to pass to the template
	Funcs template.FuncMap

	// DisableGoFormat Should disable goformat
	DisableGoFormat bool
}

type ZipRequest

type ZipRequest struct {
	// uuid of the current execution
	ExecutionUUID string
}

Jump to

Keyboard shortcuts

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