mefellows / golang-worker-example

Example buffered channel + worker example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang-worker-example

Example buffered channel + worker example

Building & Running

Build the project:

go build -o queued .

To start the worker, run:

./queued

To issue commands, run:

curl -v -X POST "localhost:8000/work?delay=1s&name=foo"

About

Example buffered channel + worker example

License:MIT License


Languages

Language:Go 100.0%