Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/avicennajr/iseven
- Owner: AvicennaJr
- License: gpl-2.0
- Created: 2023-03-05T18:59:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-05T20:50:12.000Z (over 1 year ago)
- Last Synced: 2024-06-21T17:02:55.071Z (5 months ago)
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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.