Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avicennajr/iseven

A golang package that checks whether a number is even or odd
https://github.com/avicennajr/iseven

Last synced: about 4 hours ago
JSON representation

A golang package that checks whether a number is even or odd

Awesome Lists containing this project

README

        

Is Even








A golang package to check is a number is even.

## Installation
```bash
go get github.com/AvicennaJr/IsEven
```
## How To Use
```go
package main

import (
"fmt"

iseven "github.com/AvicennaJr/isEven"
)

func main() {
n := 4
if iseven.IsEven(n) {
fmt.Println("It is even")
} else {
fmt.Println("It is not even")
}
}
```
## Issues
Do open issues for any complaints
## Contributions
If you want to contribute, simply open a pull request.
## Credits
Thanks to the hundreds of developers who made this project possible.