Revert "visual fixes"

This reverts commit 34735b2614.
This commit is contained in:
Aine
2022-08-24 12:09:23 +03:00
parent 34735b2614
commit d021e6715e
2 changed files with 52 additions and 39 deletions

View File

@@ -1,27 +0,0 @@
package utils
// ListItem with key and value
type ListItem struct {
K string
V string
}
// List slice
type List []ListItem
// Get item's value
func (l List) Get(key string) (string, bool) {
for _, item := range l {
if item.K == key {
return item.V, true
}
}
return "", false
}
// ForEach item
func (l List) ForEach(handler func(key, value string)) {
for _, item := range l {
handler(item.K, item.V)
}
}