diff --git a/dist/go-compose-exporter_darwin_amd64 b/dist/go-compose-exporter_darwin_amd64 index da60916..7e8299d 100755 Binary files a/dist/go-compose-exporter_darwin_amd64 and b/dist/go-compose-exporter_darwin_amd64 differ diff --git a/dist/go-compose-exporter_darwin_arm64 b/dist/go-compose-exporter_darwin_arm64 index 52ee23f..5aaead0 100755 Binary files a/dist/go-compose-exporter_darwin_arm64 and b/dist/go-compose-exporter_darwin_arm64 differ diff --git a/dist/go-compose-exporter_linux_amd64 b/dist/go-compose-exporter_linux_amd64 index 7804179..7cb2377 100755 Binary files a/dist/go-compose-exporter_linux_amd64 and b/dist/go-compose-exporter_linux_amd64 differ diff --git a/dist/go-compose-exporter_linux_amd64_static b/dist/go-compose-exporter_linux_amd64_static index 6403bce..0b97e62 100755 Binary files a/dist/go-compose-exporter_linux_amd64_static and b/dist/go-compose-exporter_linux_amd64_static differ diff --git a/dist/go-compose-exporter_linux_arm64 b/dist/go-compose-exporter_linux_arm64 index c679b84..be29992 100755 Binary files a/dist/go-compose-exporter_linux_arm64 and b/dist/go-compose-exporter_linux_arm64 differ diff --git a/dist/go-compose-exporter_linux_arm64_static b/dist/go-compose-exporter_linux_arm64_static index fbd38b8..5babeb4 100755 Binary files a/dist/go-compose-exporter_linux_arm64_static and b/dist/go-compose-exporter_linux_arm64_static differ diff --git a/dist/go-compose-exporter_windows_amd64 b/dist/go-compose-exporter_windows_amd64 index b08e000..4f0e56e 100755 Binary files a/dist/go-compose-exporter_windows_amd64 and b/dist/go-compose-exporter_windows_amd64 differ diff --git a/main.go b/main.go index 8a7fc8d..cdf7b66 100644 --- a/main.go +++ b/main.go @@ -203,7 +203,7 @@ func parseJSONVolumeMounts(jsonStr string) []string { parts := strings.Split(data, "\"") source := parts[3] destination := parts[7] - volumeMounts = append(volumeMounts, source+":"+destination) + volumeMounts = append(volumeMounts, fmt.Sprintf("%s:%s", source, destination)) } } return volumeMounts @@ -217,7 +217,7 @@ func parseJSONPorts(jsonStr string) []string { parts := strings.Split(data, "\"") hostPort := parts[3] containerPort := strings.Split(parts[1], "/")[0] - ports = append(ports, hostPort+":"+containerPort) + ports = append(ports, fmt.Sprintf("%s:%s", hostPort, containerPort)) } } return ports