Skip to content

Commit 647fbb1

Browse files
author
maixl
committed
移除ForeachReadForTag和ForeachWriteForTag函数
1 parent 2b7aa7a commit 647fbb1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

struct.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,11 +710,6 @@ func (s *Struct) ForeachRead(trans func(dbtag string, isQuoted bool, field refle
710710
s.foreachReadWithTags(s.withTags, s.withoutTags, trans)
711711
}
712712

713-
// ForeachReadForTag foreach tags with tag.
714-
func (s *Struct) ForeachReadForTag(tag string, trans func(dbtag string, isQuoted bool, field reflect.StructField)) {
715-
s.foreachReadWithTags([]string{tag}, nil, trans)
716-
}
717-
718713
func (s *Struct) foreachReadWithTags(with, without []string, trans func(dbtag string, isQuoted bool, field reflect.StructField)) {
719714
sfs := s.structFieldsParser()
720715
tagged := sfs.FilterTags(with, without)
@@ -731,11 +726,6 @@ func (s *Struct) ForeachWrite(trans func(dbtag string, isQuoted bool, field refl
731726
s.foreachWriteWithTags(s.withTags, s.withoutTags, trans)
732727
}
733728

734-
// ForeachWriteForTag foreach tags with tag.
735-
func (s *Struct) ForeachWriteForTag(tag string, trans func(dbtag string, isQuoted bool, field reflect.StructField)) {
736-
s.foreachWriteWithTags([]string{tag}, nil, trans)
737-
}
738-
739729
func (s *Struct) foreachWriteWithTags(with, without []string, trans func(dbtag string, isQuoted bool, field reflect.StructField)) {
740730
sfs := s.structFieldsParser()
741731
tagged := sfs.FilterTags(with, without)

0 commit comments

Comments
 (0)