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 }
/sequence
{ "numbers": [0, 1, 1, 2, 3, 5, 8, 13, 21] }
go install github.com/UltiRequiem/fibonacci@latest
Run it 👇
fibonacci -p 8080
You can get the build of the project in releases.
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 📄