service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BaseEnvService

type BaseEnvService interface {
	InstallEnv() (err error)
	GetGoEnvPath() (path string, err error)
}

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

type ModService interface {
	GetMod() (mod string, err error)
}

func NewModService

func NewModService() ModService

Jump to

Keyboard shortcuts

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