github.com/go-eden/common@v0.1.15-0.20210617133546-059099253264/README.md (about) 1 # Common util or extension [![Build Status](https://travis-ci.org/go-eden/common.svg?branch=master)](https://travis-ci.org/go-eden/common) 2 3 This library provides some utils or extension. 4 5 # Install 6 7 ```shell 8 go get github.com/go-eden/common 9 ``` 10 11 # Modules 12 13 ## [`etime`](./etime) 14 15 `etime` extend `golang`'s `time` package, and it should be faster than `time`. In my benchmark, the performance 16 of `etime.Now*` was about `40 ns/op`, `time.Now()` was about `68 ns/op`: 17 18 ## [`emath`](./emath) 19 20 some math utils. 21 22 ## [`esync`](./esync) 23 24 Provides an implementation of `reentrant lock` or `reentrant mutex`. 25 26 Wraps some atomic number: 27 28 + `AtomicBool` 29 + `AtomicInt` 30 + `AtomicUint16` 31 + `AtomicFloat32` 32 + `AtomicFloat64` 33 34 ## [`goid`](./goid) 35 36 `goid` provides `Gid()` function to find `ID` of the current `goroutine`. 37 38 # License 39 40 MIT