d6c91f3cdd79eaf1cba017fa6fdea871797aca2c
BaseConvIntByTpl returned an empty string for the value zero because its loop condition (dec > 0) was never entered. This affected BaseConv, Base10Conv and BaseConvInt for bases above 62, and was inconsistent with BaseConvInt for smaller bases which correctly returned "0" via strconv. Emit the zero digit of the target base for a zero input and guard against an empty template.
Description
My contributions to gookit/goutil: 4 commits, 1 merged PRs
49 KiB
0 Stars
1 Watchers
0 Forks
Languages
Go
100%