generator

package
v0.0.0-...-75be029 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StyleDDD = "ddd"
	StyleMVC = "mvc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(parameter *Parameter, style, basePath string) *Generator

func (*Generator) GenFile

func (g *Generator) GenFile(tmplParentPath, targetParentPath string, dir fs.DirEntry, tmpl embed.FS) (err error)

func (*Generator) GenProject

func (g *Generator) GenProject(tmpl embed.FS) (err error)

func (*Generator) IsDirEmpty

func (g *Generator) IsDirEmpty() (bool, error)

func (*Generator) ParseFile

func (g *Generator) ParseFile(tmplPath, targetPath string, tmpl embed.FS) (err error)

type Parameter

type Parameter struct {
	GoMod        string
	RelativePath string
}

Jump to

Keyboard shortcuts

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