git: one generator per app, multiple instances
this allows locking for access for each org
This commit is contained in:
@@ -24,6 +24,10 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func SplitLines(str string) []string {
|
||||
return SplitStringNoEmpty(str, "\n")
|
||||
}
|
||||
|
||||
func SplitStringNoEmpty(str, sep string) []string {
|
||||
ret := slices.DeleteFunc(strings.Split(str, sep), func(s string) bool {
|
||||
return len(strings.TrimSpace(s)) == 0
|
||||
|
||||
Reference in New Issue
Block a user