Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.0.0-...-c3376f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Provide utitlity functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOddNumber

func IsOddNumber(n int) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL