Method generate union method name for template functions `As/From/Merge`.
()
| 312 | |
| 313 | // Method generate union method name for template functions `As/From/Merge`. |
| 314 | func (u UnionElement) Method() string { |
| 315 | var method strings.Builder |
| 316 | for part := range strings.SplitSeq(string(u), `.`) { |
| 317 | method.WriteString(UppercaseFirstCharacter(part)) |
| 318 | } |
| 319 | return method.String() |
| 320 | } |
| 321 | |
| 322 | func PropertiesEqual(a, b Property) bool { |
| 323 | return a.JsonFieldName == b.JsonFieldName && a.Schema.TypeDecl() == b.Schema.TypeDecl() && a.Required == b.Required |
nothing calls this directly
no test coverage detected