Documentation
¶
Index ¶
- func CreateOneFactory(...)
- func CreatePathAndCommonFile(commonPath string, outputPath string)
- func Execute()
- func ExtraFlags(cmd *cobra.Command) (string, string, string, string, string, string, string, bool, error)
- func ExtraNameFromSchemaFilePath(schemaFile string) string
- func Fatal(msg string)
- func Fatalf(format string, v ...interface{})
- func GenerateFactories(cmd *cobra.Command, _ []string)
- func GetRealPathAndFilePath(schemaPath string, v os.FileInfo, outputPath string) (string, string)
- func NewFunc(astOut *ast.File, paramTypeName string, structType *ast.TypeSpec, ...) error
- func RunGenerate(...) (io.Reader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOneFactory ¶ added in v0.0.8
func CreateOneFactory(realPath, schemaName, realOutPutPath, projectPath, factoriesPath, appPath, entClientName, outputPath string, )
func CreatePathAndCommonFile ¶ added in v0.0.6
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExtraFlags ¶
func ExtraNameFromSchemaFilePath ¶ added in v0.1.0
func GenerateFactories ¶
func GetRealPathAndFilePath ¶ added in v0.1.0
func NewFunc ¶ added in v0.1.1
func NewFunc(astOut *ast.File, paramTypeName string, structType *ast.TypeSpec, fnIdent *ast.Ident, fnParamType *ast.StarExpr, generateForUnexportedFields, ignoreUnsupported bool, skipStructFields map[string]struct{}, entClient string, ) error
NewFunc Create the New instance function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.