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

Use maps.Keys #15

Closed
stefanvanburen opened this issue Jan 6, 2024 · 0 comments
Closed

Use maps.Keys #15

stefanvanburen opened this issue Jan 6, 2024 · 0 comments

Comments

@stefanvanburen
Copy link
Owner

small/cmd/small/main.go

Lines 47 to 51 in 72cb44f

supportedTransforms := small.SupportedTransformations()
supportedTransformNames := make([]string, 0, len(supportedTransforms))
for supportedTransformName := range supportedTransforms {
supportedTransformNames = append(supportedTransformNames, supportedTransformName)
}

This can use maps.Keys - currently not in the standard library, so should wait until it's there.

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

No branches or pull requests

1 participant