Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
程广 | 2c3857e50a |
|
@ -119,8 +119,8 @@ func structFieldInfo(typ reflect.Type, f *reflect.StructField, inDecode bool) (*
|
|||
finfo.xmlns, tag = ns, t
|
||||
}
|
||||
if inDecode {
|
||||
if ns, t, ok := strings.Cut(tag, ":"); ok {
|
||||
finfo.xmlns, tag = ns, t
|
||||
if _, t, ok := strings.Cut(tag, ":"); ok {
|
||||
finfo.xmlns, tag = "", t
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue