sqlread
go-retry
sqlread | go-retry | |
---|---|---|
1 | 1 | |
48 | 599 | |
- | - | |
5.5 | 0.9 | |
4 months ago | 3 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sqlread
-
What I'd like to see in Go 2.0
> Use int-type enums with iota: no human-readable error values, no compile-time guard against illegal enum values
Create a new int type and use that for your enums. You have to try really hard to get a bad value in that case, and if it’s an unpunished type in a different package it’s even harder.
See:
https://github.com/donatj/sqlread/blob/91b4f07370d12d697d18a...
go-retry
-
What I'd like to see in Go 2.0
I was also curious so I picked a likely-looking project on his github and indeed found an attempt to handle a channel "deterministically" at https://github.com/sethvargo/go-retry/blob/main/retry.go#L51
Honestly the whole first select seems redundant; any code that relies on this is broken. But OK, maybe you do have some strange performance case where this matters? In that case the whole thing could be more succinctly solved by looping on `for ctx.Err() == nil` instead of infinitely.
It also leaks the timer until it fires if the context cancels, which seems like it would be more of a practical performance problem than any overhead to the additional elect.
What are some alternatives?
go101 - An up-to-date (unofficial) knowledge base for Go programming self learning
enumer - A Go tool to auto generate methods for your enums
go-sumtype - A simple utility for running exhaustiveness checks on Go "sum types."
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
yaegi-template - Use yaegi as a template engine.
yaegi - Yaegi is Another Elegant Go Interpreter
go - The Go programming language