go-baseutils
queue
go-baseutils | queue | |
---|---|---|
2 | 7 | |
18 | 243 | |
- | - | |
4.9 | 5.4 | |
2 months ago | 10 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
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.
go-baseutils
-
Introduction to the Gkit concurrent component
Best practices for channel in concurrency, including fan_in,fan_out,map_reduce,or_done,orderly,pipeline,stream,generic version can be found at https://github.com/songzhibin97/go-baseutils/tree/main/app/bconcurrent
-
Introduction to the Gkit cache component
Cache-related components > buffer & mbuffer provide similar functionality, buffer has more encapsulation and implements some of the io interfaces, while mbuffer is just a memory cache. > local_cache provides a local data cache, and also has some expiry mechanisms, you can set the expiry time, and regularly clean up the expired data, but he is now older, if needed there is a generic version https://github.com/songzhibin97/go-baseutils/blob/main/ app/bcache > singleflight wraps golang.org/x/sync/singleflight to prevent the impact of changes
queue
- Hello, announcing v1.3.0 of my queue package: A Linked Queue implementation was added, complementing the Circular, Blocking, and Priority queues. All structures align with the standard Queue interface. Looking forward to your feedback!
-
Seeking Insights: Tools Used in GitHub Actions for Security Code Checks and Vulnerability Detection
i’m using these checks for my projects and I feel that this is more than enough: https://github.com/adrianbrad/queue/tree/main/.github/workflows
- Hello, I released v1.2.0 of my queue package. A Circular Queue implementation is now available. Blocking and Priority queues were previously available. All implementations satisfy the Queue interface provided by the package. Any feedback would be greatly appreciated.
-
[Code Review Request] Package providing multiple Queue implementations
I plan to release a package that is supposed to provide multiple generic Queue implementations and it also defines a Queue interface that all implementations must satisfy. Currently, there are 2 implementations, a Blocking queue, and a Priority queue.
-
[Code Review Request] Generic Blocking Queue
Hello again, I came up with this implementation that uses buffered channels: https://github.com/adrianbrad/queue/blob/blocking-channel-implementation/blocking2.go. In order to drain the channel during a Reset, the channel is closed and refilled elements, while Take listens for both new values and the close signal. What do you think? The original Reset implementation is a bit faster, you can check the benchmarks here: https://github.com/adrianbrad/queue/blob/blocking-channel-implementation/blocking_bench_test.go
What are some alternatives?
easygen - Easy to use universal code/text generator
set - Thread(Safe/Unsafe) Set data structure for Go.
genesis - All generic functions for Go you ever need!
go-blocking-dequeue - Thread safe, blocking, generic dequeue data structure for Go
gkit - A collection of basic usability component tools dedicated to providing micro-services and single services, drawing on some excellent open source project features such as kratos, go-kit, mosn, sentinel, gopkg core components. I hope you will use and mention issue and pr more often.
goqueue - Flexible Queue System for Go
goutil - 💪 Helper Utils(700+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. Go 常用的一些工具函数:数字,字符串,数组,Map,结构体,反射,文本,文件,错误,时间日期,特殊处理,格式化,常用信息获取等等
GoQ - Lightweight message queue in Golang
golangci-lint - Fast linters runner for Go
ZenQ - A thread-safe queue faster and more resource efficient than golang's native channels
haxmap - Fastest and most memory efficient golang concurrent hashmap