An open API service indexing awesome lists of open source software.

https://github.com/truexf/goutil

Here is a box of chocolates, here is the magic room, come in and have a look for a surprise!
https://github.com/truexf/goutil

jsonexp linkedlist loadbalancing lrucache queue tokenbucket

Last synced: 5 months ago
JSON representation

Here is a box of chocolates, here is the magic room, come in and have a look for a surprise!

Awesome Lists containing this project

README

          

# goutil
golang util
常用函数和工具类

### [jsonexp](https://github.com/truexf/goutil/tree/master/jsonexp)
一个json表达式组件,赋予json的语义化的能力

### [linked_list](https://github.com/truexf/goutil/tree/master/linked_list.go)
双向链表, 支持线程安全和非安全,最大化满足性能要求

### [queue](https://github.com/truexf/goutil/tree/master/queue.go)
分段式slice,在内存分配和性能之间取得平衡,类似c++ stl的deque

### [ring_queue](https://github.com/truexf/goutil/tree/master/ring_queue.go)
环形队列

### [safe_rand](https://github.com/truexf/goutil/tree/master/safe_rand.go)
线程安全的随机数生成器

### [token_bucket](https://github.com/truexf/goutil/tree/master/token_bucket.go)
令牌桶,典型的使用场景是用于流量控制和调节

### [mysqlutil](https://github.com/truexf/goutil/tree/master/mysqlutil)
mysql的工具类函数,最主要的是实现对sql语句的参数化处理,避免sql注入的同时方便sql的日志化(将参数实例代入sql,产生明确的sql)

### [goutil.go](https://github.com/truexf/goutil/tree/master/goutil.go)
常用的通用化函数和类

### [lru_file_cache.go](https://github.com/truexf/goutil/tree/master/lru_file_cache.go)
基于LRU淘汰策略的文件缓存组件

### [支持各种负载均衡策略的http client](https://github.com/truexf/goutil/tree/master/lblhttpclient)