entc

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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,
)

func FirstWordPascalCase

func FirstWordPascalCase(s string) string

func LoadTemplates

func LoadTemplates(
	internalPath string,
	dir string,
	embeddedFS embed.FS,
	funcMap template.FuncMap,
) ([]*gen.Template, error)

func NodeImplementorsVar

func NodeImplementorsVar(n *gen.Type) string

Types

type NodeWithActions

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

Jump to

Keyboard shortcuts

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