Documentation ¶
Index ¶
- func CopyFile(source, destination string) error
- func CreateControllerPath(controllerName string, projectPath string, goyaveVersion *semver.Version) (string, error)
- func CreateMiddlewarePath(projectPath string) string
- func CreateModelPath(modelName string, projectPath string, goyaveVersion *semver.Version) (string, error)
- func CreateResourceFile(path string, name string, data []byte) error
- func ExtractZip(filename string, projectName string) ([]string, error)
- func ReplaceAll(projectName string, moduleName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateControllerPath ¶
func CreateControllerPath(controllerName string, projectPath string, goyaveVersion *semver.Version) (string, error)
CreateControllerPath generate the path to goyave controllers according to the version
func CreateMiddlewarePath ¶
CreateMiddlewarePath generate the path to Goyave middleware according to the version
func CreateModelPath ¶
func CreateModelPath(modelName string, projectPath string, goyaveVersion *semver.Version) (string, error)
CreateModelPath generate the path to Goyave models according to the version
func CreateResourceFile ¶
CreateResourceFile create a resource file from a stub
func ExtractZip ¶
ExtractZip unzip a zip file
func ReplaceAll ¶
ReplaceAll replace all default module names or package names with injected values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.