Skip to content

Conversation

@jakoguta
Copy link
Contributor

This PR refactors func StructName(name string, settings *plugin.Settings) string to func StructName(name, rename string) string to make it easier to isolate during test. It only needs renamed string from the settings *plugin.Settings, thus thee is no need to provide the entire settings *plugin.Settings.

In addition strings.Title(s string) from the Go strings package has been deprecated in Go v1.18. Therefore, we should instead use cases.Title(language.English).String("myString") from the cases package.

@jakoguta
Copy link
Contributor Author

jakoguta commented May 6, 2022

I am working on the errors.

@jakoguta
Copy link
Contributor Author

I have removed the unit tests.

@jakoguta
Copy link
Contributor Author

jakoguta commented Jul 8, 2022

This pull request in now not relevant as the updates it proposed have already been handled by #1595.

@jakoguta jakoguta closed this Jul 8, 2022
@jakoguta jakoguta deleted the refactor_StructName branch July 8, 2022 07:27
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.

1 participant