Skip to content

A set of small packages that aren't worth their own repositories but are still useful and used across the projects

Notifications You must be signed in to change notification settings

indigo-web/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utils

A set of small packages that aren't worth their own repositories but are still useful and used across the projects

buffer

Ordinary buffer with pre-allocated (but dynamically-growing up to upper limit) storage for values. The only difference between it and, to say, bytes.Buffer, is that it contains markers. This isn't a lot of code neither difficult, but this found its application all across the indigo by itself (primarily http parser with header keys and values) and some other cross-projects.

constraint

A small set of generic annotations.

ft

Functional Tools: map, reduce, summer. Yet another fp-tools library without even tests.

hex

Provides functions to validate hex characters, and one for decoding byte sequence.

mapconv

Contains Keys and Copy map operations. Ain't much but it's honest work.

pool

Simple thread-unsafe object-pool. Wrote own implementation as too lazy to benchmark the one from std-library and compare them (thread-safety is anyway not needed, so considered by me to be an overkill).

strcomp

Contains a single function - EqualFold(). It compares case-insensitively two equal-length strings char-by-char.

uf

Small package with common and widely used (at least in indigo and some other side projects) unsafe functions B2S and S2B. The implementation is taken from fasthttp.

unreader

Save unneeded bytes for the next time. Used mostly to leave data read from socket for future.

About

A set of small packages that aren't worth their own repositories but are still useful and used across the projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages