entc

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEntTemplates

func BuildEntTemplates(
	entTemplates []*gen.Template,
	graph *gen.Graph,
	registry map[string]ent.Interface,
	entName string,
)

func FirstWordPascalCase

func FirstWordPascalCase(s string) string

func LoadEmbededTemplates added in v1.1.1

func LoadEmbededTemplates(
	funcMap template.FuncMap,
	embeddedFS embed.FS,
	paths ...string,
) ([]*gen.Template, error)

func LoadTemplates

func LoadTemplates(
	funcMap template.FuncMap,
	paths ...string,
) ([]*gen.Template, error)

func NodeImplementorsVar

func NodeImplementorsVar(n *gen.Type) string

Types

type TemplateData added in v1.1.0

type TemplateData struct {
	Node     *gen.Type
	Actions  []*schema.ActionDef
	NumHooks int
	EntName  string
}

Jump to

Keyboard shortcuts

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