-
Notifications
You must be signed in to change notification settings - Fork 0
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
golangci-lint check results against v0.5.0 #76
Comments
I unintentionally duplicated the `arg` tag in an effort to mark specific fields/options as required. This commit combines the `required` constraint with the existing `arg` struct tag. Credit: golangci-lint refs #76
After #83, this is the remaining item. Since this is intended as a potential future library function, I assume that breaking out the go files into separate packages (where it makes sense) is how to resolve this? For example, |
This is inspired by #76, but also because I've known for a while that this might eventually be needed. I'm hoping to better isolate code from the main package in the hope/belief that this will make setting up future tests easier and more reliable. As part of this work, the majority of the existing utility functions had to be renamed to export them for use elsewhere and a few functions had to be updated to accept a Config object in order to receive application-wide settings. This Config object also (now) bundles a `*logrus.Logger` for shared use across the application. I don't know Golang well enough at this point to know whether this is a terrible idea. If you're reading this and *you* know the answer, please reach out and share. refs #87, #76
This is inspired by #76, but also because I've known for a while that this might eventually be needed. I'm hoping to better isolate code from the main package in the hope/belief that this will make setting up future tests easier and more reliable. As part of this work, the majority of the existing utility functions had to be renamed to export them for use elsewhere and a few functions had to be updated to accept a Config object in order to receive application-wide settings. This Config object also (now) bundles a `*logrus.Logger` for shared use across the application. I don't know Golang well enough at this point to know whether this is a terrible idea. If you're reading this and *you* know the answer, please reach out and share. refs #87, #76
This is inspired by #76, but also because I've known for a while that this might eventually be needed. I'm hoping to better isolate code from the main package in the hope/belief that this will make setting up future tests easier and more reliable. As part of this work, the majority of the existing utility functions had to be renamed to export them for use elsewhere and a few functions had to be updated to accept a Config object in order to receive application-wide settings. This Config object also (now) bundles a `*logrus.Logger` for shared use across the application. I don't know Golang well enough at this point to know whether this is a terrible idea. If you're reading this and *you* know the answer, please reach out and share. refs #87, #76
This is fixed per #88. |
Need to take a closer look at the struct tags to make sure I've defined them properly.
The text was updated successfully, but these errors were encountered: