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

Idiomatic #46

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

Idiomatic #46

wants to merge 13 commits into from

Conversation

mwalto7
Copy link

@mwalto7 mwalto7 commented Aug 1, 2018

Changed API to be more idiomatic for Gophers.

@mwalto7 mwalto7 closed this Aug 1, 2018
Copy link
Owner

@alouca alouca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving the code from gosnmp.go to snmp.go makes it hard for me to review the changes -- can you split that diff into two? One for the changes in the code, and then one more to rename?

Also, logging in general is a good thing -- not sure what's the best way to log stuff in Go these days but I am not a huge fun of dropping it altogether.

otherwise excellent job in cleaning up the code :)

decode.go Outdated
}

//// Parses UINT16
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is no longer used, then remove the code

helper.go Outdated
ret.Bytes = bytes[1:]
return
}
//// parseBitString parses an ASN.1 bit string from the given byte slice and returns it.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before, if this is no longer used, drop the code

@mwalto7 mwalto7 reopened this Aug 2, 2018
@mwalto7
Copy link
Author

mwalto7 commented Aug 2, 2018

Thanks! How can I split the diff as you mentioned?

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.

2 participants