MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / SplitStr

Function SplitStr

core/utils/common/common.go:117–128  ·  view source on GitHub ↗
(str string, spi ...string)

Source from the content-addressed store, hash-verified

115}
116
117func SplitStr(str string, spi ...string) []string {
118 lists := []string{str}
119 var results []string
120 for _, s := range spi {
121 results = []string{}
122 for _, list := range lists {
123 results = append(results, strings.Split(list, s)...)
124 }
125 lists = results
126 }
127 return results
128}
129
130func UniqueUints(items []uint) []uint {
131 result := make([]uint, 0, len(items))

Callers 1

ComparePanelVersionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected