-
Notifications
You must be signed in to change notification settings - Fork 87
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
Lint and vet #48
base: master
Are you sure you want to change the base?
Lint and vet #48
Conversation
…g coding standards
…nt with Golang coding standards
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.
Can you please remove pkg/mumbleproto/Mumble.pb.go from the PR? This file should be generated from the generate script within the mumbleproto directory.
@@ -265,36 +269,36 @@ func (client *Client) readProtoMessage() (msg *Message, err error) { | |||
} | |||
|
|||
// Send permission denied by type | |||
func (c *Client) sendPermissionDeniedType(denyType mumbleproto.PermissionDenied_DenyType) { | |||
c.sendPermissionDeniedTypeUser(denyType, nil) | |||
func (client *Client) sendPermissionDeniedType(denyType mumbleproto.PermissionDenied_DenyType) { |
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.
c
is fine, no need to change that
// Merge the contents of a frozen User into an existing user struct. | ||
func (u *User) Unfreeze(fu *freezer.User) { | ||
// Unfreeze will merge the contents of a frozen User into an existing user struct. | ||
func (user *User) Unfreeze(fu *freezer.User) { |
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.
ditto
func (s *Server) SendUDP(buf []byte, addr *net.UDPAddr) (err error) { | ||
_, err = s.udpconn.WriteTo(buf, addr) | ||
// SendUDP will send the content of buf as a UDP packet to addr. | ||
func (server *Server) SendUDP(buf []byte, addr *net.UDPAddr) (err error) { |
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.
ditto
// iterating the transaction groups of an | ||
// immutable Log. | ||
type Walker struct { | ||
r io.Reader | ||
} | ||
|
||
// Type txReader imlpements a checksumming reader, intended | ||
// txReader imlpements a checksumming reader, intended |
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.
s/imlpements/implements/
Same for |
Squashing all commits would also make sense. |
This PR fixes all go vet issues and golint issues identified in the code base (except for the ones in the generated code). These issues are all minor changes to naming or to structure to make them conform to Golang coding standards.