Giter Club home page Giter Club logo

gommon's Introduction

gommon

一些平时项目中使用到的库。

欢迎issues,pr!

注:仓库代码测试用例比较简单,如需生产环境使用请充分测试。

cache

泛型LRU、LFU、FIFO、ARC、Random、NearlyLRU算法

cmd

命令执行

consistenthash

一致性哈希,参考groupcache的实现,进行了一点点修改

container

泛型容器

conv

类型转换

counter

计数器

crypto

加密算法

env

获取环境变量的工具

filter

过滤器,比如布隆过滤器

hash

泛型哈希函数

limiter

限流器

math

一些数值工具

mem

快速的泛型memset()操作

pool

sync.Pool的泛型改造,channel+select实现的固定长度pool,分级对象池,以及[]bytebytes.Buffer的字节对象池

pselect

带优先级的select,能够先执行某个channel里面的内容

slices

泛型slice工具

timer

定时器,比如泛型延迟队列、时间轮

validate

基于函数的参数校验,包含数值、字符串和slice类型校验函数

gommon's People

Contributors

jiaxwu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.