Documentation ¶
Overview ¶
Package enumbitmap provides functions to encode slices of enumeration strings into integer bitmap values and vice versa. Each bit correspond to a unique enumeration value.
Example:
00000000 = 0 dec = NONE 00000001 = 1 dec = FIRST 00000010 = 2 dec = SECOND 00000100 = 4 dec = THIRD 00001000 = 8 dec = FOURTH 00010000 = 16 dec = FIFTH 00100000 = 32 dec = SIXTH 01000000 = 64 dec = SEVENTH 10000000 = 128 dec = EIGHTH 00001001 = 1 + 8 = 9 dec = FIRST + FOURTH
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitMapToStrings ¶
BitMapToStrings converts a int bitmap value into a string slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.