generate

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateController

func GenerateController(controllerName, output string, override bool, moduleName string) error

func GenerateEntity

func GenerateEntity(entityName, outPath string, override bool) error

func GenerateEntry

func GenerateEntry(outPath string) error

func GenerateInjectController

func GenerateInjectController(controllerName, output string, override bool, moduleName string) error

func GenerateInjectRepository

func GenerateInjectRepository(repositoryName, output string, override bool) error

func GenerateInjectService

func GenerateInjectService(serviceName, output string, override bool, moduleName string) error

func GenerateModule

func GenerateModule(moduleName, outPath string) error

func GenerateProvideControllerFn

func GenerateProvideControllerFn(controllerName string, outPath string) ([]*ast.ImportSpec, *ast.FuncDecl)

func GenerateProvideControllerHandler

func GenerateProvideControllerHandler(controllerName string) *ast.ExprStmt

func GenerateProvideRepositoryFn

func GenerateProvideRepositoryFn(repositoryName string, outPath string) ([]*ast.ImportSpec, *ast.FuncDecl)

func GenerateProvideRepositoryHandler

func GenerateProvideRepositoryHandler(repositoryName string) *ast.ExprStmt

func GenerateProvideServiceFn

func GenerateProvideServiceFn(serviceName string, outPath string) ([]*ast.ImportSpec, *ast.FuncDecl)

func GenerateProvideServiceHandler

func GenerateProvideServiceHandler(serviceName string) *ast.ExprStmt

func GenerateRepository

func GenerateRepository(repositoryName, output string, override bool) error

func GenerateRouterFn

func GenerateRouterFn(controllerName string, outPath string) ([]*ast.ImportSpec, *ast.FuncDecl)

func GenerateRouterHandler

func GenerateRouterHandler(controllerName string) *ast.ExprStmt

func GenerateService

func GenerateService(serviceName, output string, override bool, moduleName string) error

func InjectController

func InjectController(controllerName, output string) error

func InjectRepository

func InjectRepository(repositoryName, output string) error

func InjectService

func InjectService(serviceName, output string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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