diff options
| author | Jeff Carr <[email protected]> | 2024-02-22 15:54:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-22 15:54:36 -0600 |
| commit | 1a3ac687309373257d2bdf4a1119eacf00de6f67 (patch) | |
| tree | e06c8455b3a1c8d3a936f7efae02662025f15891 /new.go | |
| parent | abd6ace49e8129942d83f38d08274f0c9783142d (diff) | |
only check for build button on a go.wit.com/apps
Diffstat (limited to 'new.go')
| -rw-r--r-- | new.go | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -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() - } - - } -} |
