package srv import ( "fmt" "log" "net/http" "os" ) var Config map[string]string func StartServer() { var PORT string = os.Args[1] Config = make(map[string]string) server := http.Server{ Addr: fmt.Sprintf(":%v", PORT), Handler: rtr, } fmt.Println("Server Running") err := server.ListenAndServe() if err != nil { log.Fatalf("Server error: %v", err) os.Exit(1) } }