Documentation ¶
Index ¶
Constants ¶
View Source
const GitIgnoreFile = ".gitignore.tmpl"
View Source
const GoModFile = "go.mod.tmpl"
View Source
const GoSumFile = "go.sum.tmpl"
View Source
const MainGoFile = "main.go.tmpl"
View Source
const ReadMeMdFile = "README.md.tmpl"
View Source
const UsefulCommandsFile = "useful-commands.tmpl"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
type Copier struct { NodeDirectoryName string TemplatesRootPath string Data map[string]interface{} IsGrpcServer bool HasGrpcClients bool GrpcServerPort string IsRestServer bool HasRestClients bool RestServerPort string RestResources []*corenode.Resource GrpcResources []*corenode.Resource RestClients []*corenode.RestClient GrpcClients []*corenode.GrpcClient PluralizeClient *pluralize.Client }
Copier Language specific copier
func NewCopier ¶
func NewCopier(gitPlatformURL, gitPlatformUserName, gitRepositoryName, nodeName, nodeDirectoryName, templatesRootPath string, isRestServer bool, restServerPort string, isGrpcServer bool, grpcServerPort string, isRestSQLDB bool, restSQLDB string, isGrpcSQLDB bool, grpcSQLDB string, isRestNoSQLDB bool, restNoSQLDB string, isGrpcNoSQLDB bool, grpcNoSQLDB string, restResources []*corenode.Resource, grpcResources []*corenode.Resource, restClients []*corenode.RestClient, grpcClients []*corenode.GrpcClient) *Copier
func (Copier) CreateCommonFiles ¶
CreateCommonFiles creates/copies relevant files to a generated project
Click to show internal directories.
Click to hide internal directories.