Versions in this module Expand all Collapse all v1 v1.3.6 Jun 26, 2023 v1.3.4 Jun 27, 2022 Changes in this version + func CopyDir(src, dst string, replaces, ignores []string) error + func CopyFile(src, dst string, replaces []string) error + func DoGenProject(p *Project, to string, mgrType string) error + func FirstLower(s string) string + func FirstUpper(s string) string + func GetArgs(cmd *cobra.Command, args []string) (app, server, servant, goModuleName string, err error) + func GoInstall(path ...string) error + func IsExistTars2go() bool + func ModulePath(filename string) (string, error) + func ModuleVersion(path string) (string, error) + func TarsGoHome() string + func TarsGoHomeWithDir(dir string) string + func TarsGoMod() string + func Tree(path string, dir string) + type Project struct + App string + GoModuleName string + Servant string + Server string + func NewProject(app, server, servant, goModuleName string) *Project + func (p *Project) Create(ctx context.Context, dir string, mgrType string) error + type Repo struct + func NewRepo(url string, branch string, demoDir string) *Repo + func (r *Repo) Clone(ctx context.Context) error + func (r *Repo) CopyTo(ctx context.Context, p *Project, to string, demoDir string, ignores []string) error + func (r *Repo) Path() string + func (r *Repo) Pull(ctx context.Context) error