https://github.com/vilgefortzz/send-file-via-http
Sending files via http based on client-server
https://github.com/vilgefortzz/send-file-via-http
client-server file-upload go golang http http-client http-server websocket
Last synced: 5 months ago
JSON representation
Sending files via http based on client-server
- Host: GitHub
- URL: https://github.com/vilgefortzz/send-file-via-http
- Owner: Vilgefortzz
- Created: 2018-05-27T11:17:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-25T15:31:02.000Z (about 5 years ago)
- Last Synced: 2023-07-10T20:40:45.330Z (almost 3 years ago)
- Topics: client-server, file-upload, go, golang, http, http-client, http-server, websocket
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# send-file-via-http
Sending files via http based on server-client
Install Gorilla WebSocket:
$ go get github.com/gorilla/websocket
To run the program, start the server with passing arguments:
$ go run server.go -- arg1
- arg1(optional) - host name (e.g. 127.0.0.1)
Next, start the client with passing arguments:
$ go run client.go -- arg1 arg2
- arg1 - name of the file located in send-files directory (e.g. hello.go)
- arg2(optional) - host name (e.g. 127.0.0.1)
To run tests from /tests (server must be running):
$ go test -v