generate

package
v0.0.0-...-4fb2380 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileExist = errors.New("file exist")
)

Functions

func Generate

func Generate(cfg *Config) error

Types

type Config

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

func NewConfig

func NewConfig(schemaDir string, options ...Option) *Config

func (*Config) AddExternalTemplates

func (cfg *Config) AddExternalTemplates(pattern string) *Config

AddExternalTemplates {{/* gotype: entgo.io/ent/entc/gen.Type */}}

func (*Config) AddTemplate

func (cfg *Config) AddTemplate(pattern string) *Config

AddTemplate {{/* gotype: entgo.io/ent/entc/gen.Graph */}}

type Option

type Option = entc.Option

type Template

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

func NewTemplate

func NewTemplate(template *template.Template) *Template

func (*Template) Execute

func (t *Template) Execute(baseDir string, data any) error

Jump to

Keyboard shortcuts

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