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

Lint fixes, adding docs for all public functions, utilize constants and make looping consistent. #45

Merged
merged 2 commits into from Oct 16, 2018

Conversation

deckarep
Copy link
Contributor

What a fantastic cache solution you've built. Really liking the design of this cache solution!

I hope this change is welcomed...as it mainly cleans up some minor things that my linter found, makes docs consistent and adds constants.

Please, let me know if anything should be tweaked to your liking.

cache.go Outdated
@@ -9,18 +9,24 @@ import (
)

const (
minBufSize = 512 * 1024
// segmentSize represents the number of segments within a freecache instance.
segmentSize = 256
Copy link
Owner

Choose a reason for hiding this comment

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

I think segmentCount or numSegments is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I renamed it to segmentCount to be consistent.

@coocood
Copy link
Owner

coocood commented Oct 16, 2018

Nice cleanup, thank you!

@coocood coocood merged commit 9c54a22 into coocood:master Oct 16, 2018
@deckarep
Copy link
Contributor Author

@coocood - thank you as well for this library and for the quick response!

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.

None yet

2 participants