MCPcopy Create free account
hub / github.com/Ringmast4r/PathFinder / parseStringList

Function parseStringList

main.go:3570–3582  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

3568}
3569
3570func parseStringList(s string) []string {
3571 if s == "" {
3572 return nil
3573 }
3574 parts := strings.Split(s, ",")
3575 var result []string
3576 for _, p := range parts {
3577 if trimmed := strings.TrimSpace(p); trimmed != "" {
3578 result = append(result, trimmed)
3579 }
3580 }
3581 return result
3582}
3583
3584// ===========================================================================
3585// MAIN

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected