Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse: add integral-slice type parsing support #84

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

dfinkel
Copy link
Contributor

@dfinkel dfinkel commented Jan 29, 2024

Support functions for integral-type slice-typed flags.

Support a simple comma-separated list of integers. Let
strconv.Parse{Int,Uint} pick the base so we naturally support Go's
format for binary, hex and octal.

Use generics so we only have one implementation for each of signed and
unsigned ints.

Support functions for integral-type slice-typed flags.

Support a simple comma-separated list of integers. Let
strconv.Parse{Int,Uint} pick the base so we naturally support Go's
format for binary, hex and octal.

Use generics so we only have one implementation for each of signed and
unsigned ints.
Base automatically changed from go-1.21-actions to master January 29, 2024 22:10
@dfinkel dfinkel merged commit 21522bd into master Jan 29, 2024
6 checks passed
@dfinkel dfinkel deleted the parse_integral_type_slice_helpers branch January 29, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants