Taluu / fizzbuzz-go

A try to implement a http server in go answering to fizzbuzz requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fizzbuzz Http Server

A smal project for me to learn more practical go and also show what I can do when learning new things.

Quick documentation

Usage

$ go build
$ ./fizzbuzz-go
$ ./fizzbuz-go -host domin.tld # default localhost
$ ./fizzbuzz-go -port 8081 # default 8080
$ curl -X POST http://localhost:8080/fizzbuzz -d "{\"int1\": 3, \"int2\": 5, \"limit\": 100, \"str1\": \"fizz\", \"str2\": \"buzz\"}"

To post a new fizzbuzz request. Every parameter in the json body are optionnal and will take these values if not set.

$ curl http://localhost:8080/stats

Prints the stats and requests used (sorted by mostly used)

About

A try to implement a http server in go answering to fizzbuzz requests

License:MIT License


Languages

Language:Go 100.0%