I made a simple implementation for memory efficient arbitrary bit width integers array type in Go GitHub - 1pkg/varint: VarInt: fast & memory efficient arbitrary bit width integers in Go. please check it out.
The purpose of the library is to provide the maximum memory compact way to use and store custom bit width integers. The library is fairly minimalistic but it provides the basic arithmetic and bitwise operations. The library is heavily inspired by big.Int implementation.