This commit is contained in:
kolaente 2018-11-14 17:16:17 +01:00
parent 2994903e36
commit 7d5c826dba
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 15 additions and 2 deletions

17
main.go
View File

@ -1,6 +1,9 @@
package main
import (
"bufio"
"bytes"
"encoding/csv"
"fmt"
"io/ioutil"
"strings"
@ -17,10 +20,20 @@ func main() {
i := 0
i = strings.Index(all, TheClientCSVHeader)
arefun := all[i+len(TheClientCSVHeader)+2:]
fmt.Println(arefun)
//fmt.Println(arefun)
scanner := bufio.NewScanner(strings.NewReader(arefun))
for scanner.Scan() {
fmt.Println(scanner.Text())
r := csv.NewReader(bytes.NewReader(scanner.Bytes()))
for {
record, err := r.Read()
}
}
//r := csv.NewReader(csvFile)
/*
red := bytes.NewReader([]byte(arefun))
r := csv.NewReader(red)
for {
record, err := r.Read()
if err == io.EOF {