Documentation
¶
Index ¶
- func CmdExamples(ex ...string) string
- func CreateFile(filename string) (*os.File, error)
- func FmtErr(err error) error
- func InitEnt(root, mod, name string)
- func InitGrpcApp(root, mod, name string)
- func InitGrpcProject(root, mod string, apps ...string)
- func InitHttpApp(root, mod, name string, proto bool)
- func InitHttpProject(root, mod string, proto bool, apps ...string)
- func IsDirEmpty(path string) (string, bool)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdExamples ¶
CmdExamples formats the given examples to the cli.
func CreateFile ¶
CreateFile 创建或清空指定的文件 文件已存在,则清空;文件或目录不存在,则以0775权限创建
func InitGrpcApp ¶
func InitGrpcApp(root, mod, name string)
func InitGrpcProject ¶
func InitHttpApp ¶
func InitHttpProject ¶
func IsDirEmpty ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.