1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-10-05 19:31:01 +00:00
miniflux-v2/internal/reader/xml
Julien Voisin fac18d5c57
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.
2025-09-30 18:04:42 -07:00
..
decoder.go refactor(xml): change getEncoding to return []byte and move CharsetReader callback to a separate function 2025-09-30 18:04:42 -07:00
decoder_test.go fix(reader): fix a crash introduced by d59990f1 2025-06-11 19:04:46 -07:00