{"id":20198390,"url":"https://github.com/uudashr/fibgo","last_synced_at":"2025-03-03T08:24:33.651Z","repository":{"id":142323356,"uuid":"82987674","full_name":"uudashr/fibgo","owner":"uudashr","description":"Fibonacci in Go","archived":false,"fork":false,"pushed_at":"2017-04-16T08:00:00.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T19:48:08.454Z","etag":null,"topics":["algorithm","fibonacci"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uudashr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-24T01:16:59.000Z","updated_at":"2017-02-24T09:42:24.000Z","dependencies_parsed_at":"2024-06-20T05:41:21.398Z","dependency_job_id":"b67d18ed-6e85-4e9b-87af-7cea651c78b1","html_url":"https://github.com/uudashr/fibgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Ffibgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Ffibgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Ffibgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Ffibgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uudashr","download_url":"https://codeload.github.com/uudashr/fibgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241631206,"owners_count":19993983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","fibonacci"],"created_at":"2024-11-14T04:30:58.711Z","updated_at":"2025-03-03T08:24:33.622Z","avatar_url":"https://github.com/uudashr.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/uudashr/fibgo.svg?branch=master)](https://travis-ci.org/uudashr/fibgo)\n[![Coverage Status](https://coveralls.io/repos/github/uudashr/fibgo/badge.svg?branch=master)](https://coveralls.io/github/uudashr/fibgo?branch=master)\n\n# Fibonacci\n\nProvide functionality for fibonacci related operation\n\n## Installation\n```shell\n$ go get github.com/uudashr/fibgo\n```\n\n## Usage\nGet fibonacci number of N\n```go\nimport (\n  \"fmt\"\n  fib \"github.com/uudashr/fibgo\"\n)\n\nfunc ExampleN() {\n\tfmt.Println(fib.N(0))\n\tfmt.Println(fib.N(6))\n\tfmt.Println(fib.N(9))\n\t// Output:\n\t// 0\n\t// 8\n\t// 34\n}\n```\n\nOr get sequence with length 10\n```go\nimport (\n  \"fmt\"\n  fib \"github.com/uudashr/fibgo\"\n)\n\nfunc ExampleSeq() {\n\tfmt.Println(fib.Seq(10))\n\t// Output: [0 1 1 2 3 5 8 13 21 34]\n}\n```\n\nOr create HTTP Service\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\tfib \"github.com/uudashr/fibgo\"\n)\n\nfunc main() {\n\thandler := fib.NewHTTPHandler()\n\tlog.Println(\"Listening on port\", 8080, \"...\")\n\terr := http.ListenAndServe(\":8080\", handler)\n\tlog.Println(\"Stopped err:\", err)\n}\n```\n\n\n## Running the fibgo service\nFibgo provide the http service for fibonacci numbers.\n\nTo run the service\n\n```shell\n$ fibgo-server --port 8080\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Ffibgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuudashr%2Ffibgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Ffibgo/lists"}