18 lines
400 B
Markdown
18 lines
400 B
Markdown
|
# Handler
|
||
|
|
||
|
Provides simple HTTP file server; Its so simple to do with golang; looks like nobody bothers to provide a ready-to-download package to actually do it.
|
||
|
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Calling without any arguments defaults to serving ./ at 0.0.0.0:8080
|
||
|
|
||
|
### Changing default settings
|
||
|
|
||
|
- a sets ip address
|
||
|
- p sets port
|
||
|
- d sets directory to serve
|
||
|
|
||
|
```golang
|
||
|
$ ./handler -a 127.0.0.1 -p 3000 -d ./foo/bar
|
||
|
```
|