MCPcopy Create free account
hub / github.com/diillson/chatcli / parseTechList

Function parseTechList

cli/workspace/memory/projects.go:170–182  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

168}
169
170func parseTechList(s string) []string {
171 parts := strings.FieldsFunc(s, func(r rune) bool {
172 return r == ',' || r == ';' || r == '|'
173 })
174 var result []string
175 for _, p := range parts {
176 p = strings.TrimSpace(p)
177 if p != "" {
178 result = append(result, p)
179 }
180 }
181 return result
182}
183
184func mergeTechs(existing, incoming []string) []string {
185 set := make(map[string]bool)

Callers 1

UpsertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected