Documentation ¶
Index ¶
- func GoInstall(path ...string) error
- func KratosMod() string
- func ModulePath(filename string) (string, error)
- func ModuleVersion(path string) (string, error)
- func ParseVCSUrl(repo string) (*url.URL, error)
- func Tree(path string, dir string)
- type Repo
- func (r *Repo) Clone(ctx context.Context) error
- func (r *Repo) CopyTo(ctx context.Context, to string, modPath string, ignores []string) error
- func (r *Repo) CopyToV2(ctx context.Context, to string, modPath string, ignores, replaces []string) error
- func (r *Repo) Path() string
- func (r *Repo) Pull(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModulePath ¶
ModulePath returns go module path.
func ModuleVersion ¶
ModuleVersion returns module version.
func ParseVCSUrl ¶
ParseVCSUrl ref https://github.com/golang/go/blob/master/src/cmd/go/internal/vcs/vcs.go see https://go-review.googlesource.com/c/go/+/12226/ git url define https://git-scm.com/docs/git-clone#_git_urls
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo is git repository manager.
Click to show internal directories.
Click to hide internal directories.