-
Notifications
You must be signed in to change notification settings - Fork 68
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
Various code cleanups #17
base: main
Are you sure you want to change the base?
Conversation
Hey @Keitio the current Not too sure why, but there was a reason. I haven't used Go in a while now, so not up-to-date with the latest practices around |
Basically, any is declared in go 1.18+ as an alias to interface{}, so it will not work for older versions Maybe we could maintain some sort of very basic connector compatible with 1.13+, and this one as the official connector, but only 1.18+ ? Ultimately it's your call whether we want compatibility or nice stuff, but the go.mod should reflect that anyway |
I reverted the change from interface{} to any, and changed the go.mod to be 1.13 |
@Keitio I have been out of the Go world for a bit now (since 1.16), so not up-to-date with usage. What is the usage of Golang pre 1.18 currently? |
I can only speak from experience and inference, but most use i saw was from at most 2 versions prior to latest (that would mean 1.17 currently) |
I concur on the current-2, especially in enterprise-y environments where people are discouraged from running on the bleeding edge. |
Hi @Keitio could you rebase the current main branch and pull in the latest changes? |
Done, need a maintainer to give the green light to workflows |
Hey @Keitio just a few minor changes 😀👍👏 ! |
No problem, I don't think I'll get to it today but it will be done tomorrow |
Well, a bit late (sorry for that) but i rebased on main and applied your changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you! It might have merge conflicts once we land another change, but otherwise approved. Thank you!
Merge should be all good, tests pass locally |
Hey @Keitio , I just fixed the lining fault in our pipeline, so I am surprised you are getting that as I thought the linter would rebase. Guess it doesn't. Would you be able to bring the latest changes in please? To run the linter against it properly. |
Add testify to dependencies Rewrite tests to use testify Ignore test that has a permission issue
i hope this is good, merge was a bit chaotic on my end |
Hey @Keitio ! Nearly ready to merge! All you need to do is resolve the conflicts, and we can add this :) Thank you! |
interface{}
toany
self
orthis
are bad practice in Go)select
andswitch
usesIf this is too much change for one PR, I can split it to smaller ones