Commit bcf22ac5 authored by Kevin Lyda's avatar Kevin Lyda 💬

Clean up vars.

parent eb61d7ae
Pipeline #1294 passed with stage
in 28 minutes and 35 seconds
......@@ -18,13 +18,15 @@ import (
"gitlab.com/lyda/gqgmc/server/pages"
)
var addr = flag.String("listen-address", ":8080", "Address for HTTP requests")
var device = flag.String("device", "/dev/gqgmc", "Device for Geiger Counter")
var model = flag.String("model", "gqgmc", "Model of Geiger Counter")
var templateDir = flag.String("template-dir", "templates", "Template directory")
var staticDir = flag.String("static-dir", "static", "Static files directory")
var sleepCycle = flag.Int64("sleep-cycle", 5, "Seconds to sleep per cycle.")
var cfg = flag.String("config", "gqgmc.conf", "Config file")
var (
addr = flag.String("listen-address", ":8080", "Address for HTTP requests")
device = flag.String("device", "/dev/gqgmc", "Device for Geiger Counter")
model = flag.String("model", "gqgmc", "Model of Geiger Counter")
templateDir = flag.String("template-dir", "templates", "Template directory")
staticDir = flag.String("static-dir", "static", "Static files directory")
sleepCycle = flag.Int64("sleep-cycle", 5, "Seconds to sleep per cycle.")
cfg = flag.String("config", "gqgmc.conf", "Config file")
)
func main() {
flag.Parse()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment