Skip to content
/ common Public

This library provides some utils or extension.

License

Notifications You must be signed in to change notification settings

go-eden/common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common util or extension Build Status

This library provides some utils or extension.

Install

go get github.com/go-eden/common

Modules

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:

some math utils.

Provides an implementation of reentrant lock or reentrant mutex.

Wraps some atomic number:

  • AtomicBool
  • AtomicInt
  • AtomicUint16
  • AtomicFloat32
  • AtomicFloat64

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

License

MIT

About

This library provides some utils or extension.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages