/basekit

The commonly used go language development kit

Primary LanguageGoApache License 2.0Apache-2.0

basekit

The commonly used go language development kit

License Go Report Card GoDoc Build Status

Some usual toolkit,include:

pub-sub

Just mediate implemention in memory(publish:Topic,subscribe:channel)

singleflight

only duplicate of singleflight in groupcache

svc

program init,start,safe exit

hash

  • consistent:
  • hrw:provides an implementation of Highest Random Weight hashing, an alternative to consistent hashing which is both simple and fast

other

  • counter:multithreading counter
  • waitwraper:a wrapper for simplify calling for waitgroup