(content []byte)
| 107 | } |
| 108 | |
| 109 | func parsePipeTableContent(content []byte) [][]string { |
| 110 | lines := strings.Split(proto.Utf8ToGbk(content), "\n") |
| 111 | result := make([][]string, 0, len(lines)) |
| 112 | for _, line := range lines { |
| 113 | line = strings.TrimSpace(line) |
| 114 | if line == "" { |
| 115 | continue |
| 116 | } |
| 117 | result = append(result, strings.Split(line, "|")) |
| 118 | } |
| 119 | return result |
| 120 | } |
| 121 | |
| 122 | func parseCSVContent(content []byte) ([][]string, error) { |
| 123 | reader := csv.NewReader(strings.NewReader(proto.Utf8ToGbk(content))) |
searching dependent graphs…