High Performance Fibonacci Abstraction Layer and an API.
Install the package by:
go get github.com/UltiRequiem/fibonacci/pkg
This packages exposes two functions,
Fibonacci
and
FibonacciSequence
.
Usage Example:
package main
import (
"fmt"
fina "github.com/UltiRequiem/fibonacci/pkg"
)
func main() {
fiboNum, _ := fina.Fibonacci(9)
fmt.Println(fiboNum) // 34
fiboSequence, _ := fina.FibonacciSequence(9)
fmt.Println(fiboSequence) // [0 1 1 2 3 5 8 13 21]
}
For more examples, see internal directory.
Check for more detailed info on pkg.go.dev.
{ "number": 34 }
{ "numbers": [0, 1, 1, 2, 3, 5, 8, 13, 21] }
- Install as a CLI Program...
go install github.com/UltiRequiem/fibonacci@latest
Run it π
fibonacci -p 8080
- Using Binary from Releases
You can get the build of the project in releases.
- From Source
git clone https://github.com/UltiRequiem/fibonacci
Then run main.go
file.
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Don't forget to start the repo β
Eliaz Bobadilla - Creator and Maintainer πͺ
See also the full list of contributors who participated in this project β¨
Licensed under the MIT License π