Fix passing port on command line
This commit is contained in:
parent
2e7b2d2928
commit
07c5b9cf5a
3 changed files with 8 additions and 3 deletions
2
main.go
2
main.go
|
@ -13,6 +13,8 @@ import (
|
|||
var port = flag.Int("port", 8080, "The port to host on")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
s := server.NewServer(
|
||||
server.OptionPort(*port),
|
||||
server.OptionPersistentData())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue