github.com/ohir/bitpeek
Bitpacked data pretty-formatter. Makes bits human readable. Zero dependencies. Every single input bit from 0 to 63 can print a label that show this bit state. Arbitrary group of bits can be printed as decimal, octal or hex numbers and as C32s, Ascii7b or UTF8 characters. Plus as an IPv4 address in dot-notation. Taste it: Package has NO dependencies and its parser is under 170 LoC so it is useful where standard "fmt" and "log" packages are too heavy to use (ie. IoT, embed and high-throughput environments). Parser allocates heap memory only for its output. Pic (format) string is written in left-to-right order (most significant bit, b63 is on the left) so any shorter uint based type can be simply cast and fed to Snap function. Bitpeek has an accompanying tool (bplint) you ought to use to validate all picstrings in your source file(s). Picstrings linter is avaliable at https://github.com/ohir/bplint
proxy.golang.org
v1.0.1
over 7 years ago
2
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/ohir/bitpeek
spec |
| License | MIT |
| Namespace | github.com/ohir |
| First Release | over 7 years ago |
| Last Synced | 9 days ago |
Repository
| Stars | 4 on GitHub |
| Forks | 0 on GitHub |