gbitarray Very simple and lightweight BitArray implementation bits := NewBitArray(10) bits.SetBit(5) if bits.HasBit(5) { }