package main
import (
"fmt"
"strings"
)
var idsUnits = `{10F3DDED-800A-EC11-A30E-0050568A2E98}
{14F3DDED-800A-EC11-A30E-0050568A2E98}
{48B209F4-800A-EC11-A30E-0050568A2E98}`
func main() {
removelinebreaks()
}
func removelinebreaks() {
idsForRemove := idsUnits
result := strings.ReplaceAll(idsForRemove, "{", "") // Remove the {
result = strings.ReplaceAll(result, "}", ",") // Replace the } with ,
result = strings.ReplaceAll(result, "\n", "") // Remove line breaks
result = strings.TrimSuffix(result, ",") // Remove the last comma
fmt.Println("data output:\n")
fmt.Println(result)
}