summaryrefslogtreecommitdiff
path: root/new.go
blob: 237f5823e32b26d70e5fcba61abbb698da969785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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()
		}

	}
}