Categorygithub.com/go-eden/common
repository
0.1.14
Repository: https://github.com/go-eden/common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Common util or extension

This library provides some utils or extension.

Install

go get github.com/go-eden/common

Modules

etime

etime extend golang's time package, and it should be faster than time. In my benchmark, the performance of etime.Now* was about 40 ns/op, time.Now() was about 68 ns/op:

emath

some math utils.

esync

Provides an implementation of reentrant lock or reentrant mutex.

Wraps some atomic number:

  • AtomicBool
  • AtomicInt
  • AtomicUint16
  • AtomicFloat32
  • AtomicFloat64

goid

goid provides Gid() function to find ID of the current goroutine.

License

MIT