pg

package
v0.0.0-...-8b49031 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepositorySuffix  = "GrpcRepository"
	RpcClientFileName = "client"
	Repository        = "Repository"
	Service           = "Service"
	RpcClient         = "RpcClient"
	Controller        = "Controller"
	All               = "all"

	RepositoryTpl = "repository.tpl"
	ServiceTpl    = "service.tpl"
	ClientTpl     = "client.tpl"
	ControllerTpl = "controller.tpl"
)

Variables

View Source
var (
	HomeDir string
)

pg php generate Example:service repository rpcClient controller

View Source
var (
	PgCmd = &cobra.Command{
		Use:              "pg",
		Short:            "php generate init file",
		Long:             `generate init file for php project;examples:repository、service、controller、rpcClient`,
		TraverseChildren: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			run()
			return nil
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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