Documentation ¶
Index ¶
- 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 IsExistKsf2go() bool
- func KsfGoHome() string
- func KsfGoHomeWithDir(dir string) string
- func KsfGoMod() string
- func ModulePath(filename string) (string, error)
- func ModuleVersion(path string) (string, error)
- func Tree(path string, dir string)
- type Project
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArgs ¶
func ModulePath ¶
ModulePath returns go module path.
func ModuleVersion ¶
ModuleVersion returns module version.
Types ¶
type Project ¶
Project is a project template.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo is git repository manager.
func NewRepo ¶
NewRepo new a repository manager.
func (*Repo) Clone ¶
Clone clones the repository to cache path.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.