mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-07 08:34:15 +01:00
removed remaining flag parsing
This commit is contained in:
parent
4c151bdf8f
commit
3985c6c483
3
main.go
3
main.go
@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"compress/gzip"
|
"compress/gzip"
|
||||||
"flag"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -26,8 +25,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
|
||||||
|
|
||||||
cfg := loadConfiguration()
|
cfg := loadConfiguration()
|
||||||
resultsHandler := serviceResultsHandler
|
resultsHandler := serviceResultsHandler
|
||||||
if cfg.Security != nil && cfg.Security.IsValid() {
|
if cfg.Security != nil && cfg.Security.IsValid() {
|
||||||
|
Loading…
Reference in New Issue
Block a user