https://github.com/stanleynguyen/is-thirteen
1️⃣3️⃣ Check if a number is equal to 13.
https://github.com/stanleynguyen/is-thirteen
13 go golang thirteen
Last synced: 3 months ago
JSON representation
1️⃣3️⃣ Check if a number is equal to 13.
- Host: GitHub
- URL: https://github.com/stanleynguyen/is-thirteen
- Owner: stanleynguyen
- License: mit
- Created: 2020-04-30T15:53:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T10:13:21.000Z (about 5 years ago)
- Last Synced: 2025-02-28T06:03:39.423Z (3 months ago)
- Topics: 13, go, golang, thirteen
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

# is-thirteen
[](https://pkg.go.dev/github.com/stanleynguyen/is-thirteen)


[](https://codecov.io/gh/stanleynguyen/is-thirteen)
[](https://goreportcard.com/report/github.com/stanleynguyen/is-thirteen)Check if a number is equal to 13. A port of [this NPM module](https://github.com/jezen/is-thirteen).
## Installation
```bash
go get -u github.com/stanleynguyen/is-thirteen
```## Usage
```go
package mainimport "github.com/stanleynguyen/is-thirteen"
func main() {
is.Number(13).Thirteen() // true
is.Number(12.8).Roughly.Thirteen() // true
is.Number(6).Within(10).Of.Thirteen() // true
is.Number(2007).YearOfBirth.Thirteen() // true// check your math skillz
is.Number(4).Plus(5).Thirteen() // false
is.Number(12).Plus(1).Thirteen() // true
is.Number(4).Minus(12).Thirteen() // false
is.Number(14).Minus(1).Thirteen() // true
is.Number(1).Times(8).Thirteen() // false
is.Number(26).Divides(2).Thirteen() // true// check your spelling and chemistry skillz
is.String("tHirTeEn").Thirteen() // true
is.String("nethtire").AnagramOf.Thirteen() // true
is.String("neetriht").Backwards.Thirteen() // true
is.String("aLumInUm").AtomicNumber.Thirteen() // true
}```
Check out [pkg.go.dev](https://pkg.go.dev/github.com/stanleynguyen/is-thirteen) for the full documentation.