You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("the following ports are already in use:\n - %s\n\nPlease stop the services using these ports or configure different ports in your config file",
76
+
joins(unavailablePorts, "\n - "))
77
+
}
78
+
79
+
returnnil
80
+
}
81
+
82
+
// joins is a simple helper to join strings with a separator
83
+
funcjoins(strs []string, sepstring) string {
84
+
iflen(strs) ==0 {
85
+
return""
86
+
}
87
+
result:=strs[0]
88
+
fori:=1; i<len(strs); i++ {
89
+
result+=sep+strs[i]
90
+
}
91
+
returnresult
92
+
}
93
+
32
94
funcmain() {
33
95
// Parse command line flags
34
96
configPath:=flag.String("config", "", "Path to configuration file")
0 commit comments