{"id":24291451,"url":"https://github.com/sszqdz/bayes-toolkit","last_synced_at":"2026-04-16T17:34:32.571Z","repository":{"id":215461484,"uuid":"738996386","full_name":"sszqdz/bayes-toolkit","owner":"sszqdz","description":"🚀 Bayes Toolkit is a package written in Golang, aimed at facilitating rapid application development for users.","archived":false,"fork":false,"pushed_at":"2024-03-29T14:29:28.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T14:36:20.626Z","etag":null,"topics":["gin","go","golang","golang-library","golang-package","middleware","performance","rapid-development","router","toolkit","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sszqdz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T14:32:49.000Z","updated_at":"2024-01-04T16:42:42.000Z","dependencies_parsed_at":"2024-01-16T17:28:26.842Z","dependency_job_id":"842b3108-55d4-47f1-9bf0-4222cd7d19d2","html_url":"https://github.com/sszqdz/bayes-toolkit","commit_stats":null,"previous_names":["sszqdz/bayes-toolkit"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sszqdz%2Fbayes-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sszqdz%2Fbayes-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sszqdz%2Fbayes-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sszqdz%2Fbayes-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sszqdz","download_url":"https://codeload.github.com/sszqdz/bayes-toolkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242144498,"owners_count":20078964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gin","go","golang","golang-library","golang-package","middleware","performance","rapid-development","router","toolkit","websocket"],"created_at":"2025-01-16T14:33:05.148Z","updated_at":"2025-10-18T08:02:01.487Z","avatar_url":"https://github.com/sszqdz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bayes Toolkit\n\n🚀 **Bayes Toolkit is a package written in Golang, aimed at facilitating rapid application development for users.**\n\n\u003e **NOTICE❗**  \n\u003e This toolkit is currently in the development phase, and more features will be added and enhanced in the future.\n\n## 👉 Table of Contents\n\n- [Installation](#-installation)\n- [Packages](#-packages)\n- [Examples](#-examples)\n- [Repositories Directly Used in Bayes Toolkit](#-repositories-directly-used-in-bayes-toolkit)\n- [License](#-license)\n\n## 💻 Installation\n\nFirst, use `go get`:\n\n```shell\ngo get -u github.com/sszqdz/bayes-toolkit\n```\n\nNext, include in your code:\n\n```go\nimport \"github.com/sszqdz/bayes-toolkit\"\n```\n\n## 📦 Packages\n\n- **`ccmap`** Extend [![orcaman/concurrent-map](https://img.shields.io/github/stars/orcaman/concurrent-map?style=flat\u0026color=blue\u0026labelColor=black\u0026label=orcaman/concurrent-map)](https://github.com/orcaman/concurrent-map) to conveniently allow **integer** type variables to be used as keys.\n- **`dirr`** A complement to the standard library, providing **convenient file and directory operations** such as recursively searching for specific files up through parent directories.\n- **`environment`** Load the **ENV** of the program (such as debug, release) from **system environment variables** (higher priority) or **.env** file.\n- **`gin-router`** **A Routing Decorator** for [![gin-gonic/gin](https://img.shields.io/github/stars/gin-gonic/gin?style=flat\u0026color=blue\u0026labelColor=black\u0026label=gin-gonic/gin)](https://github.com/gin-gonic/gin) that allows convenient **bypassing of specified middleware** for certain endpoints using methods such as **Unuse()** and **Skip()**.\n- **`gin-timeout`** **A Timeout Middleware** for [![gin-gonic/gin](https://img.shields.io/github/stars/gin-gonic/gin?style=flat\u0026color=blue\u0026labelColor=black\u0026label=gin-gonic/gin)](https://github.com/gin-gonic/gin) that **gracefully** handles timeout requests under **high concurrency**, **preventing Context leaks** and the resulting **request errors**.\n- **`redis-lock`** **A Redis Lock** that supports both **blocking and non-blocking** functions.\n- **`redis-queue`** **A Message Queue** based on **Redis Stream**.\n- **`rrand`**  A complement to the standard library, providing **convenient operations for generating random values** such as random strings of a specified length.\n- **`ws`** A wrapper for [![gorilla/websocket](https://img.shields.io/github/stars/gorilla/websocket?style=flat\u0026color=blue\u0026labelColor=black\u0026label=gorilla/websocket)](https://github.com/gorilla/websocket), providing elegant and **safe concurrent read/write** operations, **graceful close and shutdown** handling.  \n\n## 🗃 Examples\n\n\u003e 🚧 **Under Construction...**  \n\n## 💖 Repositories Directly Used in Bayes Toolkit\n\n**Hey, a big thumbs-up to all open source contributors out there!  \nYour awesome work makes this boring world more interesting!  \nRespect!**\n\n- [![orcaman/concurrent-map](https://img.shields.io/github/stars/orcaman/concurrent-map?style=flat\u0026color=blue\u0026labelColor=black\u0026label=orcaman/concurrent-map)](https://github.com/orcaman/concurrent-map) **a thread-safe concurrent map for go**\n- [![spf13/cast](https://img.shields.io/github/stars/spf13/cast?style=flat\u0026color=blue\u0026labelColor=black\u0026label=spf13/cast)](https://github.com/spf13/cast) **safe and easy casting from one type to another in Go**\n- [![spf13/viper](https://img.shields.io/github/stars/spf13/viper?style=flat\u0026color=blue\u0026labelColor=black\u0026label=spf13/viper)](https://github.com/spf13/viper) **Go configuration with fangs**\n- [![gin-gonic/gin](https://img.shields.io/github/stars/gin-gonic/gin?style=flat\u0026color=blue\u0026labelColor=black\u0026label=gin-gonic/gin)](https://github.com/gin-gonic/gin) **Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.**\n- [![redis/go-redis](https://img.shields.io/github/stars/redis/go-redis?style=flat\u0026color=blue\u0026labelColor=black\u0026label=redis/go-redis)](https://github.com/redis/go-redis) **Redis Go client**\n- [![adrianbrad/queue](https://img.shields.io/github/stars/adrianbrad/queue?style=flat\u0026color=blue\u0026labelColor=black\u0026label=adrianbrad/queue)](https://github.com/adrianbrad/queue) **Go package providing multiple queue implementations. Developed in a thread-safe generic way.**\n- [![sourcegraph/conc](https://img.shields.io/github/stars/sourcegraph/conc?style=flat\u0026color=blue\u0026labelColor=black\u0026label=sourcegraph/conc)](https://github.com/sourcegraph/conc) **Better structured concurrency for go**\n- [![gorilla/websocket](https://img.shields.io/github/stars/gorilla/websocket?style=flat\u0026color=blue\u0026labelColor=black\u0026label=gorilla/websocket)](https://github.com/gorilla/websocket) **Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go.**\n\nAND these beautiful badges in SVG:  \n\n- [![badges/shields](https://img.shields.io/github/stars/badges/shields?style=flat\u0026color=blue\u0026labelColor=black\u0026label=badges/shields)](https://github.com/badges/shields) **Concise, consistent, and legible badges in SVG and raster format**  \n\n## 📜 License\n\nThe project is licensed under the [MIT](https://github.com/sszqdz/bayes-toolkit/blob/master/LICENSE) © [sszqdz](https://github.com/sszqdz).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsszqdz%2Fbayes-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsszqdz%2Fbayes-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsszqdz%2Fbayes-toolkit/lists"}