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

Refactor code fix deprecations and format #103

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

peczenyj
Copy link

fixing ioutil deprecations and format source code

there are still two deprecations that I have no idea how to fix properly:

perhaps by using github.com/iancoleman/strcase solve some of the issues

stringer.go:249:9: SA1019: packages.LoadSyntax is deprecated: LoadSyntax exists for historical compatibility and should not be used. Please directly specify the needed fields using the Need values. (staticcheck)
		Mode: packages.LoadSyntax,
		      ^
stringer.go:355:11: SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
			return strings.Title(s)
			       ^
stringer.go:359:20: SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
			title := []rune(strings.Title(s))
			                ^

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