summaryrefslogtreecommitdiffstats
path: root/routes/util.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--routes/util.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/routes/util.go b/routes/util.go
index d3f80fe..e6a6267 100644
--- a/routes/util.go
+++ b/routes/util.go
@@ -3,8 +3,15 @@ package routes
import (
"os"
"path/filepath"
+
+ "git.icyphox.sh/legit/git"
)
+func isGoModule(gr *git.GitRepo) bool {
+ _, err := gr.FileContent("go.mod")
+ return err == nil
+}
+
func getDescription(path string) (desc string) {
db, err := os.ReadFile(filepath.Join(path, "description"))
if err == nil {