🌇 High Performance Fibonacci Abstraction Layer + API

Fibonacci

GitMoji PkgGoDev License: MIT Lines Of Code CodeQL Build Go Report Card

High Performance Fibonacci Abstraction Layer and an API.

PKG

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.

API

API Demo: https://z91bf2703-za30e6095-gtw.qovery.io

Endpoints

  • Root Path

Try curl http://localhost:3000/890

  • Sequence Path

Try curl http://localhost:3000/sequence/890

Run The API

  • Install as a CLI Program...
go install github.com/UltiRequiem/fibonacci@latest

If you have correctly configured your GOPATH, then:

fibonacci -p 8080
  • Using Binary from Releases

You can get the build of the project in releases.

  • From Source

git clone this project or download it in zip format.

git clone https://github.com/UltiRequiem/fibonacci

Then run main.go file.

License

This project is licensed under the MIT license.

Owner
Eliaz Bobadilla
14 yo • Focuses on Golang & JavaScript. Makes Web apps, CLI tools, node & deno packages.
Eliaz Bobadilla
Similar Resources

The NVD API is an unofficial Go wrapper around the NVD API.

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

Jan 7, 2023

go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

Dec 15, 2022

A Wrapper Client for Google Spreadsheet API (Sheets API)

Senmai A Wrapper Client for Google Spreadsheet API (Sheets API) PREPARATION Service Account and Key File Create a service account on Google Cloud Plat

Nov 5, 2021

💾 Wolke API is the API behind Wolke image storage and processing aswell as user management

💾 Wolke API Wolke API is the API behind Wolke image storage and processing aswell as user management Deploying To deploy Wolke Bot you'll need podman

Dec 21, 2021

Upcoming mobiles api (UpMob API)

upcoming_mobiles_api (UpMob API) UpMob API scraps 91mobiles.com to get devices i

Dec 21, 2021

Arweave-api - Arweave API implementation in golang

Arweave API Go implementation of the Arweave API Todo A list of endpoints that a

Jan 16, 2022

Api-product - A basic REST-ish API that allows you to perform CRUD operations for Products

Description A basic REST-ish API that allows you to perform CRUD operations for

Jan 3, 2022

Contact-api - API for websites I have designed that have to send unauthenticated email

contact https://aws.amazon.com/premiumsupport/knowledge-center/custom-headers-ap

Apr 11, 2022

Triangula-api-server - API server for processing images with Triangula

Triangula API server Minimalistic API server that calculates and serves artistic

Jan 10, 2022
Use grype to do Docker layer scanning on various AWS ECR repositories

grype-scan-aws-ecr Use https://github.com/anchore/grype/ to do Docker layer scanning on various AWS ECR repositories. kubectl get pods -o custom-colum

Jan 6, 2022
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Feb 6, 2022
A pure Go collection of Base58, Base91, Base92… with safety, rigor and performance in mind

BaseXX Go modules:           import "github.com/teal-finance/BaseXX/base58" import "github.com/teal-finance/BaseXX/base62" import "github.com/teal-fin

Oct 26, 2022
High-level YugabyteDB RPC and command line client

YugabyteDB Client API YugabyteDB Client API provides high level API operations and command line interface for YugabyteDB RPC. Command line interface i

Jan 8, 2022
Tiny go package for fetching high and low value of a stock for any given period range using kite connect historical data APIs.

Tiny go package for fetching high and low value of stock for any given period range using Kite connect Historical data APIs.

Apr 27, 2022
Go library for accessing the MyAnimeList API: http://myanimelist.net/modules.php?go=api

go-myanimelist go-myanimelist is a Go client library for accessing the MyAnimeList API. Project Status The MyAnimeList API has been stable for years a

Sep 28, 2022
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Oct 6, 2022
An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Dec 30, 2022
lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

Jan 6, 2023
A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS _____ ____ ______ _____ _ _ _____ _____ _____ _____ / ____|/ __ \ | ____|_ _| \ | | __ \ /\ | __ \_

Oct 25, 2021