You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(xml): change getEncoding to return []byte and move CharsetReader callback to a separate function
- There is no need for getEncoding to return a string instead of an array of
bytes, so let's make it return a []byte instead of a string.
- There is no reason why the function used for decoder.CharsetReader
has to be defined as a lambda instead of a proper function. One might argue
the other way around, but a lambda is living on the heap, while a "real"
function doesn't.
0 commit comments