custom

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package custom provides the custom generation functionality that uses a provide template to generate a file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(tmplData *schema.TemplateData, outputDir string, cfg Config) error

Generate creates a new Custom file.

Types

type Config

type Config struct {
	// OutputFile is the name of the model to generate the custom file.
	OutputFile string
	// TemplateFile is the path to the template file.
	TemplateFile string
	// Format controls whether the generated file is formatted with goimports.
	Format bool
}

Config is the configuration for the Custom generator.

Jump to

Keyboard shortcuts

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