-
Notifications
You must be signed in to change notification settings - Fork 38
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
chore: Enable field alignment go vet check #127
chore: Enable field alignment go vet check #127
Conversation
Signed-off-by: Patricia Reinoso <[email protected]>
Can one of the admins verify this patch? |
fix typo
@gab-arrobo can you please review this. |
Will do |
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.
Please taka look at the comments and let me know what you think... This is someting that could be done in several files because /* logger */
can be removed and Log *logrus.Entry
could be put next to other variables of the same type
gnodeb/context/gnbupf.go
Outdated
@@ -18,8 +18,7 @@ const GTP_U_PORT int = 2152 | |||
|
|||
// GnbUpf holds the UPF context | |||
type GnbUpf struct { | |||
UpfAddr *net.UDPAddr | |||
UpfIpString string | |||
UpfAddr *net.UDPAddr |
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.
Something similar to my previous comment, why not putting variables of the same type together? For example:
UpfAddr *net.UDPAddr
GnbUpUes *GnbUeDao
Log *logrus.Entry
Signed-off-by: Patricia Reinoso <[email protected]>
I am always eager to remove unnecessary comments. I moved all the log fields next to other pointers |
@patriciareinoso, please resolve conflicts. Thanks! |
Signed-off-by: Patricia Reinoso <[email protected]>
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.
+1 (tested changes with AiaB)
Go vet checks were enabled in #116
(but they were disable in following commits)
This PR re enables all go vet analyzers and fixes
fieldalignment
analyzer