Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
|
@ -119,8 +119,8 @@ func structFieldInfo(typ reflect.Type, f *reflect.StructField, inDecode bool) (*
|
|||
finfo.xmlns, tag = ns, t
|
||||
}
|
||||
if inDecode {
|
||||
if _, t, ok := strings.Cut(tag, ":"); ok {
|
||||
finfo.xmlns, tag = "", t
|
||||
if ns, t, ok := strings.Cut(tag, ":"); ok {
|
||||
finfo.xmlns, tag = ns, t
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue