fix: allow hex input in UintSlice#484
Conversation
|
Maintainer context: this is intended as a minimal consistency fix for |
tomasaschan
left a comment
There was a problem hiding this comment.
Changes look OK to me, but there are some stray things around IP address parsing that have snuck into the diff. Needs a rebase, maybe?
fa0c373 to
298bcdf
Compare
|
Rebased and force-pushed on July 2, 2026 to drop the unrelated |
|
Thanks for these contributions! |
Summary
UintSliceparse values with base autodetection instead of decimal-only parsingUintSlicealigned with other integer slice flags that already accept0xinputUintSlicevaluesProblem
Issue #229 reports that
UintSliceVarrejects inputs like0x86even though other integer slice flags accept Go-style base prefixes. TodayUintSliceusesstrconv.ParseUint(..., 10, 0)in parsing, replacement, and getter conversion paths, so hexadecimal values fail unexpectedly.Fix
Switch the
UintSliceparsing paths tostrconv.ParseUint(..., 0, 0)so base prefixes are handled consistently across parse, replace, andGetUintSlice().Closes #229