Documentation ¶
Index ¶
- Constants
- Variables
- func CamelString(s string) string
- func CheckDirMode() bool
- func ExecShellCommand(command string) error
- func GitClone(appName string) bool
- func IsDir(path string) bool
- func OutputError(msg string) error
- func OutputFail(msg string) error
- func OutputFile(root, pkgName, module string) (io.Writer, error)
- func OutputInfo(title, msg string)
- func OutputOk(msg string)
- func OutputStep(msg string)
- func OutputWarn(msg string)
- func SnakeString(s string) string
Constants ¶
View Source
const ( HandlerPkgName = "handler" ModelPkgName = "model" RepoPkgName = "repository" CachePkgName = "cache" )
View Source
const GitUrl = "https://github.com/gofuncchan/ginger.git"
View Source
const ShellToUse = "bash"
Variables ¶
View Source
var ( Green = string([]byte{27, 91, 57, 55, 59, 52, 50, 109}) White = string([]byte{27, 91, 57, 48, 59, 52, 55, 109}) Yellow = string([]byte{27, 91, 57, 48, 59, 52, 51, 109}) Red = string([]byte{27, 91, 57, 55, 59, 52, 49, 109}) Blue = string([]byte{27, 91, 57, 55, 59, 52, 52, 109}) Magenta = string([]byte{27, 91, 57, 55, 59, 52, 53, 109}) Cyan = string([]byte{27, 91, 57, 55, 59, 52, 54, 109}) Reset = string([]byte{27, 91, 48, 109}) )
设置颜色输出
Functions ¶
func ExecShellCommand ¶
func OutputError ¶
func OutputFail ¶
func OutputInfo ¶
func OutputInfo(title, msg string)
func OutputStep ¶
func OutputStep(msg string)
func OutputWarn ¶
func OutputWarn(msg string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.