gen

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePublicDir

func GeneratePublicDir(options ...PublicDirOption) error

GeneratePublicDir generates the public directory which can be then embedded into the binary.

Types

type CreateForm

type CreateForm struct {
	Fields []string
}

CreateForm can be used to annotate an entgo schema field as input in a create form.

func (CreateForm) Name

func (CreateForm) Name() string

type ListItem

type ListItem struct {
	Fields []string
}

ListItem can be used to annotate an entgo schema field as a member of a list item.

func (ListItem) Name

func (ListItem) Name() string

type PublicDirOption

type PublicDirOption func(*publicOpt)

PublicDirOption is a function that can be used to configure generation of public directory using GeneratePublic.

func InDir

func InDir(path string) PublicDirOption

InDir sets the input directory for the public directory.

func OutDir

func OutDir(path string) PublicDirOption

OutputDir sets the output directory for the public directory.

func PublicFileExtensions

func PublicFileExtensions(extensions []string) PublicDirOption

Extension adds an extension to the list of extensions that will be copied over.

type UpdateForm

type UpdateForm struct {
	Fields []string
}

UpdateForm can be used to annotate an entgo schema field as input in an update form.

func (UpdateForm) Name

func (UpdateForm) Name() string

Jump to

Keyboard shortcuts

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