MCPcopy Create free account
hub / github.com/bensema/gotdx / parsePipeTableContent

Function parsePipeTableContent

client_extras.go:109–120  ·  view source on GitHub ↗
(content []byte)

Source from the content-addressed store, hash-verified

107}
108
109func 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
122func parseCSVContent(content []byte) ([][]string, error) {
123 reader := csv.NewReader(strings.NewReader(proto.Utf8ToGbk(content)))

Callers 2

GetTableFileMethod · 0.85

Calls 1

Utf8ToGbkFunction · 0.92

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…