package Utils func IsAnPKey(item any, header string) bool { switch value := item.(type) { case string: var l int = len(value) return value[:len(header)+1] == header+"_" && value[l-6:] == "_start" || value[l-4:] == "_end" } return false } func IsKey(item any) bool { switch value := item.(type) { case string: return len(value) != 0 && Patterns.RE_KEY.MatchString(value) } return false } func IsPascalKey(item any) bool { switch value := item.(type) { case string: return len(value) != 0 && Patterns.RE_PASCAL_KEY.MatchString(value) } return false }