code clean: refine similar functions in tidb/util/codec
and server/internal/dump/dump.go
#44970
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
There are some similar functions, we could refine and improve them.
For example, the
dump.Uint64
function is very similar withEncodeUint
. And also we could usebinary.BigEndian.AppendUint64
orbinary.LittleEndian.AppendUint64
instead of them either.The text was updated successfully, but these errors were encountered: