Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewModService, NewFileService, NewBaseEnvService, )
Functions ¶
This section is empty.
Types ¶
type BaseEnvService ¶
func NewBaseEnvService ¶
func NewBaseEnvService() BaseEnvService
type FileService ¶
type FileService interface { IsExitsDir(dir string) (ok bool, err error) IsExistsFile(path string) (ok bool, err error) Mkdir(dir string) (err error) TransformName(name string) (camel, class string) Replace(content, mod string) (tpl string) WriteToFile(fileName string, content string) error CopyPath(src, dst string) (ok bool, err error) CopyFile(src, dst string) (ok bool, err error) ReadAll(filePth string) ([]byte, error) ReplaceAll(root, old, new string) (err error) CreateMod(root string) error ReplaceMain(root, old, new string) error }
func NewFileService ¶
func NewFileService() FileService
type ModService ¶
func NewModService ¶
func NewModService() ModService
Click to show internal directories.
Click to hide internal directories.