From f1e5de93a3ee261d90c545b26c9867115dbce1ee Mon Sep 17 00:00:00 2001 From: lconsuegra Date: Thu, 7 Jan 2021 11:36:09 +0100 Subject: [PATCH] main.go : syntax --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 7d34699..83ef164 100644 --- a/main.go +++ b/main.go @@ -15,8 +15,7 @@ import ( type options struct { Address string MetricsPath string - - CupsUri string + CupsUri string } func main() { @@ -25,7 +24,7 @@ func main() { opts := options{} flag.StringVar(&opts.Address, "web.listen-address", ":9628", "address on which to expose metrics and web interface") flag.StringVar(&opts.MetricsPath, "web.telemetry-path", "/metrics", "path under which to expose metrics") - flag.StringVar(&opts.CupsUri, "cups.uri", "https://localhost:631", "uri under with the cups server is available, including username and password it required") + flag.StringVar(&opts.CupsUri, "cups.uri", "https://localhost:631", "uri under which the cups server is available, including username and password it required") flag.Parse() log.Info("starting cups exporter")