summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-09 03:18:51 -0500
committerJeff Carr <[email protected]>2025-07-09 23:24:06 -0500
commitbd05270a8348ded0d48199a294797d445ba3fcb8 (patch)
treea19ba96b0a293cc05f2c90c4a81179947056a579 /clone.go
parentb60226c818a15ae7edc3356c595878eacc9acd17 (diff)
expose these the forge daemon
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/clone.go b/clone.go
index ed9f044..a1bee27 100644
--- a/clone.go
+++ b/clone.go
@@ -173,6 +173,10 @@ func (f *Forge) urlClone(gopath, giturl string) (*gitpb.Repo, error) {
// for example:
// This will check go.wit.com for "go.wit.com/apps/go-clone"
// and return where the URL to do git clone should be
+func FindGoImport(url string) (string, error) {
+ return findGoImport(url)
+}
+
func findGoImport(url string) (string, error) {
resp, err := http.Get(url)
if err != nil {