fs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(source, destination string) error

CopyFile copy file from given source path to given destination path

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

func CreateMiddlewarePath(projectPath string) string

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

func CreateResourceFile(path string, name string, data []byte) error

CreateResourceFile create a resource file from a stub

func ExtractZip

func ExtractZip(filename string, projectName string) ([]string, error)

ExtractZip unzip a zip file

func ReplaceAll

func ReplaceAll(projectName string, moduleName string) error

ReplaceAll replace all default module names or package names with injected values

Types

This section is empty.

Jump to

Keyboard shortcuts

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