Documentation
¶
Overview ¶
package exportenums generates the enums for the export types based on the entx annotation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct {
entc.DefaultExtension
// contains filtered or unexported fields
}
Extension implements entc.Extension
type ExtensionOption ¶
type ExtensionOption = func(*Extension)
ExtensionOption is a function that modifies the Extension configuration.
func WithGeneratedDir ¶
func WithGeneratedDir(outputDir string) ExtensionOption
WithGeneratedDir allows you to set an alternative output directory Defaults to "./pkg/enums"
func WithPackageName ¶
func WithPackageName(packageName string) ExtensionOption
WithPackageName allows you to set an alternative package name for the generated file Defaults to "enums"
Click to show internal directories.
Click to hide internal directories.