golib

module
v0.0.0-...-782cc26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2018 License: MIT

README

golib

Library of utility code for Go programs

util

Various utility functions. Of particular interest are the logging and base64 functions.

deque

A data structure that can serve as FIFO, LIFO, vector, array, list, stack, queue, buffer, channel, inter-process-communication mechanism. It's synchronized so that it can be used by multiple goroutines in parallel. It can be used blocking (with timeouts) and non-blocking. Its speed and memory-usage are appropriate for most situations. Basically, whenever you need a non-tree data structure, just use this one, and only consider something else after you've tried it and have encountered a specific reasons why it doesn't work in that situation.

bytes

An alternative to bytes/buffer from the standard Go library. Unlike the standard version this one is based on malloc()/free(). This is useful when you are dealing with very large buffers and need to control their lifetime manually to avoid out-of-memory issues.

Directories

Path Synopsis
Alternative to the Go standard lib's bytes package that avoids the GC problems.
Alternative to the Go standard lib's bytes package that avoids the GC problems.
A goroutine-safe universal buffer/container/queue/stack/vector/list.
A goroutine-safe universal buffer/container/queue/stack/vector/list.
Graphics related algorithms and data structures.
Graphics related algorithms and data structures.
Convert files in a variety of encodings into a sequence of runes.
Convert files in a variety of encodings into a sequence of runes.
Various re-usable utility functions.
Various re-usable utility functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL