Funbit
1 like
Funbit is a comprehensive Go library that provides full Erlang/OTP bit syntax compatibility for working with bitstrings and binary data.
Cost / License
- Free
- Open Source
Platforms
- Mac
- Windows
- Linux
- BSD
- Go (Programming Language)
Features
- Golang
- Pattern matching
Tags
- erlang
- bitstring
- go-library
Funbit News & Activities
Highlights All activities
Recent activities
Funbit information
No comments or reviews, maybe you want to be first?
Post comment/reviewWhat is Funbit?
A Go library I've been working on that brings Erlang-style bitstring construction and pattern matching to Go. If you've ever worked with binary protocols or needed precise bit-level data manipulation, this might be useful.
Key features:
- True Erlang Compatibility: Direct 1:1 mapping of Erlang bit syntax to Go API
- True Bit-Level Operations: Operates as a genuine bit stream, not byte-aligned segments
- Rich Data Types: Integer, float (16/32/64-bit), binary, bitstring, UTF-8/16/32
- Dynamic & Expression-Based Sizing: Variables and arithmetic expressions (total-6)
- Unit Multipliers: Size multiplication with unit:N (e.g., 32/float-unit:2 = 64-bit double)
- Full Endianness Support: Big, little, and native byte ordering
- Compound Specifiers: Complex combinations (32/big-unsigned-integer-unit:8)
- String Literals in Patterns: Constants like "IHDR":4/binary for protocol validation
- Builder API Pattern: Chain operations, check errors once
- Proper Type Semantics: Integers display as numbers, binary as characters
- Protocol-Ready: Built for parsing real-world protocols (IPv4, TCP, PNG, etc.)
- High Performance: Optimized for both construction and pattern matching

