internal

package
v0.0.0-...-16e4524 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdExamples

func CmdExamples(ex ...string) string

CmdExamples formats the given examples to the cli.

func CreateFile

func CreateFile(filename string) (*os.File, error)

CreateFile 创建或清空指定的文件 文件已存在,则清空;文件或目录不存在,则以0775权限创建

func FmtErr

func FmtErr(err error) error

func InitEnt

func InitEnt(root, mod, name string)

func InitGrpcApp

func InitGrpcApp(root, mod, name string)

func InitGrpcProject

func InitGrpcProject(root, mod string, apps ...string)

func InitHttpApp

func InitHttpApp(root, mod, name string, proto bool)

func InitHttpProject

func InitHttpProject(root, mod string, proto bool, apps ...string)

func IsDirEmpty

func IsDirEmpty(path string) (string, bool)

Types

type Params

type Params struct {
	Module  string
	AppPkg  string
	AppName string
	DockerF string
	Proto   bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳