package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
file, err := os.Open("data.csv")
if err != nil {
fmt.Println(err)
} else {
scanner := bufio.NewScanner(file)
for scanner.Scan() {
line := scanner.Text()
result := strings.Split(line, ",")
fmt.Println(result)
}
}
file.Close()
}