https://github.com/metrue/emc
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/metrue/emc
- Owner: metrue
- Created: 2019-04-19T08:22:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T08:30:38.000Z (about 6 years ago)
- Last Synced: 2025-01-11T02:29:16.770Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## fibonacci numbers
this is a service to get the fibonacci numbers
### Live Demo
You can access following live demo if you don't want to build by yourself.
https://fibonacci.minghe.me/fibonacci?number=5
### Usage
* Run locally
```
make clean && make run
```* Run with Docker
```
make docker
```* Call service
You can test service with cURL, say you want get fibonacci numbers of 5
```
curl 127.0.0.1:8080/fibonacci?number=5
```You will get
```
{
"data":[0,1,1,2,3],
"message":"ok"
}
```