https://github.com/opencoff/go-utils
General purpose golang utility functions
https://github.com/opencoff/go-utils
askpass buffer-pool circular-queue golang mmap password-prompt
Last synced: 12 days ago
JSON representation
General purpose golang utility functions
- Host: GitHub
- URL: https://github.com/opencoff/go-utils
- Owner: opencoff
- Created: 2018-02-28T22:14:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-24T20:19:28.000Z (5 months ago)
- Last Synced: 2025-03-31T20:41:20.759Z (about 2 months ago)
- Topics: askpass, buffer-pool, circular-queue, golang, mmap, password-prompt
- Language: Go
- Size: 74.2 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-utils - general purpose helper functions for golang
## What is it?
This is a collection of library functions I used in multiple go projects.
It didn't have a good home so, I collectively put it here.## What is available?
- Threadsafe fixed-size circular queue
- Random UUIDv4 generator
- mmap(2) reader to read and process very large files in chunks
- Channel backed, fixed-size buffer pool. Unlike sync.Pool, this has
a fixed size (set at construction time) and never changes. As a result,
when the pool runs out of memory, the caller is blocked until another
go-routine frees a buffer.
- Interactive password prompter.