feat: getting struct fields

This commit is contained in:
2025-02-11 18:51:25 +07:00
commit 653c667e57
9 changed files with 139 additions and 0 deletions

15
utils/contains_many.go Normal file
View File

@@ -0,0 +1,15 @@
package utils
import "strings"
func ContainsMany(str string, substrs... string) bool {
count := 0
for _, substr := range substrs {
if strings.Contains(str, substr) {
count++;
} else {
return false;
}
}
return count == len(substrs)
}