Categorygithub.com/Kevinello/go-buffer
repositorypackage
0.1.1
Repository: https://github.com/kevinello/go-buffer.git
Documentation: pkg.go.dev

# Packages

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

# README

go-buffer

go-buffer represents a Generic buffer that asynchronously flushes its contents.

Motivation

Provide generic buffer for user, which is useful for applications that need to aggregate data / write to an external storage before flush it. Compatible with various data types (Container), providing error handling and secure Close.

Features

  • Periodic automatic flush
  • Manually flush(async/sync)
  • Safely Close
  • Error Channel for error handling
  • Generic Support

Install

go get github.com/Kevinello/go-buffer@latest

⚠️ Retracted versions

Versions released erroneously, Please do not install these versions(retracted versions)

  • v0.0.1
  • v0.0.2
  • v0.1.0

Usage

Life Cycle

Project Structure

Project Structure

TODO

  • add test and benchmark

Contribution & Support

Feel free to send a pull request if you consider there's something which can be improved. Also, please open up an issue if you run into a problem when using benchvisual or just have a question.