Skip to content

Commit

Permalink
realdatatype bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
celt237 committed Jul 3, 2024
1 parent 44a0e40 commit ef6282a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astParser.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func parseField(field *ast.Field) (fieldDesc *Field, err error) {
}
fieldDesc.DataType = exprToString(field.Type)
if strings.HasPrefix(fieldDesc.DataType, "*") {
fieldDesc.RealDataType = fieldDesc.DataType[1:]
fieldDesc.RealDataType = strings.Replace(fieldDesc.DataType, "*", "", -1)
fieldDesc.IsPtr = true
} else {
fieldDesc.RealDataType = fieldDesc.DataType
Expand Down

0 comments on commit ef6282a

Please sign in to comment.