Skip to content

Commit

Permalink
Update type.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bobohume authored Sep 26, 2022
1 parent 6cacaa8 commit 246a663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orm/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ func getSliceTypeString(paramType reflect.Type) string {
switch sTypeName {
case "bool", "float64", "float32", "int8", "uint8", "int16", "uint16",
"int32", "uint32", "int64", "uint64", "string", "int", "uint":
return "[*]" + sTypeName
return "[]" + sTypeName
}

return "[*]struct"
return "[]struct"
}

func getArrayTypeString(paramType reflect.Type) string {
Expand Down

0 comments on commit 246a663

Please sign in to comment.