neicore / isEven

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is Even

A golang package to check is a number is even.

Installation

go get github.com/AvicennaJr/IsEven

How To Use

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.

About

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

License:GNU General Public License v2.0


Languages

Language:Go 71.9%Language:Dockerfile 25.7%Language:Makefile 2.4%