project

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFilesFromTemplate

func CreateFilesFromTemplate(files []FileTemplate, config *Config) (err error)

func CreateProjectFiles

func CreateProjectFiles(config *Config) (err error)

func CreateProjectStructure

func CreateProjectStructure(dirs []string)

func Generate

func Generate(config *Config) (err error)

func RandomName

func RandomName() string

Types

type Config

type Config struct {
	PkgName  string
	AppName  string
	RootPath string
	DirTree
	DirNames
}

type DirNames

type DirNames struct {
	CmdDir        string
	ServerDir     string
	EntityDir     string
	PkgDir        string
	HandlerDir    string
	TransportDir  string
	ValidatorDir  string
	ServiceDir    string
	StorageDir    string
	InfraDir      string
	ConfigDir     string
	SvrerrDir     string
	SqliteRepoDir string
}

type DirTree

type DirTree struct {
	CmdPath       string
	ServerPath    string
	EntityPath    string
	HandlerPath   string
	TransportPath string
	ValidatorPath string
	ServicePath   string
	StoragePath   string
	SqlitePath    string
	ConfigPath    string
	SvrerrPath    string
}

type FileTemplate

type FileTemplate struct {
	Path     string
	Template *template.Template
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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