- Natural language TCP server.
- A minimal docker container.
- Automatically pushes it to dockerhub if circlec build pass.
Installation
mkdir -p $GOPATH/src/github.com/rafaeljesus
cd $GOPATH/src/github.com/rafaeljesus
git clone https://github.com/rafaeljesus/wstats.git
cd wstats
glide install
sh build && sh build-container
Running Tests
go test $(go list ./... | grep -v /vendor/)
Runing tcp server
./wstats
Running tcp server with custom http/tcp ports
./wstats -tcp_port=5555 -http_port=8080
Sending Text
echo -n "lorem porem foo lorem bar foo" | nc localhost 5555
Or
nc localhost 5555 < some_text.txt
- Response
HTTP/1.0 Status 200 OK
See docs
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
GitHub @rafaeljesus · Medium @_jesus_rafael · Twitter @_jesus_rafael