File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 11<p align =" center " >
22 <img src =" gopher.png " >
33</p >
4-
5- ![ Go] ( https://img.shields.io/github/workflow/status/globocom/go-buffer/Go?style=flat-square )
6- [ ![ License] ( https://img.shields.io/github/license/globocom/go-buffer?color=blue&style=flat-square )] ( https://github.com/globocom/go-buffer/blob/master/LICENSE )
7- ![ Go] ( https://img.shields.io/github/go-mod/go-version/globocom/go-buffer?style=flat-square )
8- [ ![ PkgGoDev] ( https://img.shields.io/badge/Go-reference-blue?style=flat-square )] ( https://pkg.go.dev/github.com/globocom/go-buffer )
4+ <p align =" center " >
5+ <img src =" https://img.shields.io/github/workflow/status/globocom/go-buffer/Go?style=flat-square " >
6+ <a href =" https://github.com/globocom/go-buffer/blob/master/LICENSE " >
7+ <img src="https://img.shields.io/github/license/globocom/go-buffer?color=blue&style=flat-square">
8+ </a >
9+ <img src =" https://img.shields.io/github/go-mod/go-version/globocom/go-buffer?style=flat-square " >
10+ <a href =" https://pkg.go.dev/github.com/globocom/go-buffer " >
11+ <img src="https://img.shields.io/badge/Go-reference-blue?style=flat-square">
12+ </a >
13+ </p >
914
1015# go-buffer
1116
1722
1823## Examples
1924
20- ### Size-based flush
25+ ### Size-triggered flush
2126
2227``` golang
2328package main
@@ -39,6 +44,7 @@ func main() {
3944 }
4045 }),
4146 )
47+ // ensure the buffer
4248 defer buff.Close ()
4349
4450 buff.Push (" item 1" )
@@ -54,7 +60,7 @@ func main() {
5460}
5561```
5662
57- ### Interval-based flush
63+ ### Interval-triggered flush
5864
5965``` golang
6066package main
You can’t perform that action at this time.
0 commit comments