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.
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