mirror of
https://github.com/gin-gonic/gin.git
synced 2026-09-13 05:15:45 +08:00
delete one row
This commit is contained in:
parent
d75fcd4c9a
commit
9654077b1b
@ -146,8 +146,7 @@ func tryToSetValue(value reflect.Value, field reflect.StructField, setter setter
|
||||
var tagValue string
|
||||
var setOpt setOptions
|
||||
|
||||
tagValue = field.Tag.Get(tag)
|
||||
tagValue, opts := head(tagValue, ",")
|
||||
tagValue, opts := head(field.Tag.Get(tag), ",")
|
||||
|
||||
if tagValue == "" { // default value is FieldName
|
||||
tagValue = field.Name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user