KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I didn't find a BitSet package in Go, so I tried to implement it. I'd like to use a array of uint64 to store the bits. I need the number of bits to allocate the uint64 array. With Java, I can define a constructor that takes an integer. While Go doesn't provide constructor, how can I properly initialize the BitSet 'object' when user call new()?
Tags (comma-separated)
Save Edits
Cancel