https://github.com/ladicle/http-handson
Sample HTTP server was written by Go
https://github.com/ladicle/http-handson
go http webserver
Last synced: 11 months ago
JSON representation
Sample HTTP server was written by Go
- Host: GitHub
- URL: https://github.com/ladicle/http-handson
- Owner: Ladicle
- Created: 2017-07-10T22:52:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T23:47:09.000Z (over 8 years ago)
- Last Synced: 2025-01-12T08:43:09.495Z (about 1 year ago)
- Topics: go, http, webserver
- Language: HTML
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Hands-on
Sample codes for Software Design September 2017.
## Installation
To install the library and command line program, use the following:
```
go get -u github.com/Ladicle/http-handson
```
## Usage
Run HTTP server:
```
$ http-handson
2017/07/11 06:46:58 Access to 127.0.0.1:7070
```
Show command usage:
```
$ http-handson --help
Usage of ./http-handson:
-h string
server host name (default "127.0.0.1")
-p int
server port number (default 7070)
```
## Reconvert views
Views are converted to binary data by `go-bindata`.
If you want to reconvert view, to run the the following command.
```
$ go get -u github.com/jteeuwen/go-bindata/...
$ go-bindata -o view.go views
```