pysaprk explode
package main
import (
"fmt"
"strings"
)
func main() {
// Input data
data := "apple,orange,banana"
// Split the input string into a slice of strings using the comma as the delimiter
elements := strings.Split(data, ",")
// Iterate over the elements and print each one
for _, element := range elements {
fmt.Println(element)
}
}