Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonstnn/isodd
A Go package that checks if a given value is odd.
https://github.com/simonstnn/isodd
go go-package golang iseven isodd
Last synced: 13 days ago
JSON representation
A Go package that checks if a given value is odd.
- Host: GitHub
- URL: https://github.com/simonstnn/isodd
- Owner: SimonStnn
- License: apache-2.0
- Created: 2024-01-05T19:32:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T19:44:38.000Z (almost 1 year ago)
- Last Synced: 2024-11-06T07:14:34.647Z (2 months ago)
- Topics: go, go-package, golang, iseven, isodd
- Language: Go
- Homepage: https://pkg.go.dev/github.com/SimonStnn/isodd
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IsOdd
A Go package that checks if a given value is odd.
## Usage
Here's how you can use the `IsOdd` function:
```go
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`:
```bash
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!