MCPcopy Index your code
hub / github.com/tinylib/msgp / AnyHasTagPart

Method AnyHasTagPart

gen/elem.go:618–625  ·  view source on GitHub ↗

AnyHasTagPart returns true if HasTagPart(p) is true for any field.

(pname string)

Source from the content-addressed store, hash-verified

616
617// AnyHasTagPart returns true if HasTagPart(p) is true for any field.
618func (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.
628func (s *Struct) CountFieldTagPart(pname string) int {

Callers 2

mapstructMethod · 0.80
structmapMethod · 0.80

Calls 1

HasTagPartMethod · 0.80

Tested by

no test coverage detected