4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-09-11 01:52:30 +00:00

Update vendor (#1446)

* Update vendor

* Use upstream emoji lib again
This commit is contained in:
Wim
2021-04-03 19:16:46 +02:00
committed by GitHub
parent d3b60cc445
commit 21eb37e471
40 changed files with 8088 additions and 5397 deletions

View File

@@ -1,9 +1,6 @@
# ring
[![GoDoc](https://godoc.org/github.com/zfjagann/golang-ring?status.svg)](https://godoc.org/github.com/zfjagann/golang-ring)
--
import "github.com/zfjagann/golang-ring"
import "github.com/zealws/golang-ring"
Package ring provides a simple implementation of a ring buffer.
@@ -20,19 +17,27 @@ Changing this value only affects ring buffers created after it is changed.
```go
type Ring struct {
sync.Mutex
}
```
Type Ring implements a Circular Buffer. The default value of the Ring struct is
a valid (empty) Ring buffer with capacity DefaultCapacify.
#### func (Ring) Capacity
#### func (*Ring) Capacity
```go
func (r Ring) Capacity() int
func (r *Ring) Capacity() int
```
Capacity returns the current capacity of the ring buffer.
#### func (*Ring) ContentSize
```go
func (r *Ring) ContentSize() int
```
ContentSize returns the current number of elements inside the ring buffer.
#### func (*Ring) Dequeue
```go