Documentation
¶
Overview ¶
Provide utitlity functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOddNumber ¶
Check if given integer an odd number. This func utilises bit operator '&'. Because all odd numbers in binary end with 1, while even numbers end with 0, hence an '&1' operation will result in true for odd number and false for even number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.