## Description Fulfills the data collection interfaces to provide item deleted flags and collection state enums. A note on the additional data consumption: I'm making an assumption that the @removed property will appear in that map. This is awaiting testing for verification, which I'll get into as a follow-up step. ## Does this PR need a docs update or release note? - [x] ⛔ No ## Type of change - [x] 🌻 Feature ## Issue(s) * #1727 ## Test Plan - [x] ❓ In a follow-up PR
23 lines
313 B
Go
23 lines
313 B
Go
package common
|
|
|
|
func ContainsString(super []string, sub string) bool {
|
|
for _, s := range super {
|
|
if s == sub {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// First returns the first non-zero valued string
|
|
func First(vs ...string) string {
|
|
for _, v := range vs {
|
|
if len(v) > 0 {
|
|
return v
|
|
}
|
|
}
|
|
|
|
return ""
|
|
}
|