mirror of
https://github.com/miniflux/v2.git
synced 2025-09-30 19:22:11 +00:00
- 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 also no need to assign a decoder.CharsetReader when the encoding is utf-8, so let's not do that anymore. - Moreover, 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. |
||
---|---|---|
.. | ||
decoder.go | ||
decoder_test.go |