From 1a3ac687309373257d2bdf4a1119eacf00de6f67 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 22 Feb 2024 15:54:36 -0600 Subject: only check for build button on a go.wit.com/apps --- new.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 new.go (limited to 'new.go') diff --git a/new.go b/new.go deleted file mode 100644 index 237f582..0000000 --- a/new.go +++ /dev/null @@ -1,29 +0,0 @@ -package repolist - -import ( - "go.wit.com/log" -) - -func RemoveFirstElement(slice []string) (string, []string) { - if len(slice) == 0 { - return "", slice // Return the original slice if it's empty - } - return slice[0], slice[1:] // Return the slice without the first element -} - -func RepoType() { - for _, repo := range me.allrepos { - switch repo.Status.RepoType() { - case "binary": - //log.Info("compile here. Show()") - repo.Show() - case "library": - //log.Info("library here. Hide()") - repo.Hide() - default: - log.Info("showApps() unknown. Show()") - repo.Hide() - } - - } -} -- cgit v1.2.3