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

pkg/core/config: replace deprecated strings.Title with cases.Title #715

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

jlevesy
Copy link
Contributor

@jlevesy jlevesy commented Jun 10, 2022

Replace deprecated calls to strings.Title with cases.Title

Fixes #668

This PR replaces all the callsites of strings.Title with the recommended cases.Title method, configured for 'English', with the cases.NoLower option to get as close as possible from the behavior of strings.Title (https://go.dev/play/p/0lQ9iHPi_Ro)

This change doesn't seem to break the test suite, so that's a first step. I'm unsure how to properly test this though.

Test

To test this pull request, you can run the following commands:

go test ./pkg/core/config/

Additional Information

Tradeoff

None

Potential improvement

None

@olblak
Copy link
Member

olblak commented Jun 10, 2022

thanks for the PR, the change should be fine.

@olblak olblak enabled auto-merge (squash) June 10, 2022 15:43
@olblak olblak added the cleanup label Jun 10, 2022
@olblak olblak merged commit 05e42de into updatecli:main Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

strings.Title is has been deprecated since G1.18
2 participants