Skip to content

Commit

Permalink
optimize: add deep equal to slim codegen (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed Feb 21, 2024
1 parent 3352cd3 commit 313d51b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generator/golang/templates/slim/slim.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ func (p *{{$TypeName}}) Error() string {
return p.String()
}
{{- end}}
{{- if Features.GenDeepEqual}}
{{template "StructLikeDeepEqual" .}}
{{template "StructLikeDeepEqualField" .}}
{{- end}}
{{InsertionPoint "ExtraFieldMap"}}
{{- end}}{{/* define "StructLike" */}}
`
Expand Down

0 comments on commit 313d51b

Please sign in to comment.