MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cloneStringSlice

Function cloneStringSlice

internal/pluginhost/adapters.go:209–214  ·  view source on GitHub ↗
(in []string)

Source from the content-addressed store, hash-verified

207}
208
209func cloneStringSlice(in []string) []string {
210 if len(in) == 0 {
211 return nil
212 }
213 return append([]string(nil), in...)
214}
215
216func cloneRegistryModels(in []*registry.ModelInfo) []*registry.ModelInfo {
217 if len(in) == 0 {

Calls

no outgoing calls

Tested by

no test coverage detected