online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
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) }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue