AnyHasTagPart returns true if HasTagPart(p) is true for any field.
(pname string)
| 616 | |
| 617 | // AnyHasTagPart returns true if HasTagPart(p) is true for any field. |
| 618 | func (s *Struct) AnyHasTagPart(pname string) bool { |
| 619 | for _, sf := range s.Fields { |
| 620 | if sf.HasTagPart(pname) { |
| 621 | return true |
| 622 | } |
| 623 | } |
| 624 | return false |
| 625 | } |
| 626 | |
| 627 | // CountFieldTagPart the count of HasTagPart(p) is true for any field. |
| 628 | func (s *Struct) CountFieldTagPart(pname string) int { |
no test coverage detected