Skip to content

Commit

Permalink
优化mapper组件
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 7, 2024
1 parent 052dd44 commit ce25996
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mapper.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mapper

import (
"fmt"
"github.com/farseer-go/collections"
"github.com/farseer-go/fs/fastReflect"
"github.com/farseer-go/fs/types"
Expand All @@ -16,7 +15,6 @@ func Array[TEntity any](fromSlice any, set ...func(*TEntity, any)) []TEntity {
//获取到具体的值信息
sliArray := reflect.Indirect(reflect.ValueOf(fromSlice))
for i := 0; i < sliArray.Len(); i++ {
fmt.Println(i)
var toObj TEntity
item := sliArray.Index(i)
// 基础类型
Expand Down

0 comments on commit ce25996

Please sign in to comment.