isodd

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

README

IsOdd

A Go package that checks if a given value is odd.

Usage

Here's how you can use the IsOdd function:

import (
    "fmt"
    "github.com/SimonStnn/isodd"
)

func main() {
    fmt.Println(isodd.IsOdd(5)) // Output: true
    fmt.Println(isodd.IsOdd(4)) // Output: false
}

Installation

To install the isodd package, you can use go get:

go get github.com/SimonStnn/isodd

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

If you have any suggestions or improvements, please open an issue to discuss them. I appreciate all feedback and ideas!

Thank you for using my Go package!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOdd

func IsOdd(n int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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