MCPcopy Create free account
hub / github.com/copernet/copernicus / interface2string

Function interface2string

logic/lscript/lscript_test.go:327–337  ·  view source on GitHub ↗
(sli []interface{})

Source from the content-addressed store, hash-verified

325}
326
327func interface2string(sli []interface{}) []string {
328 var res []string
329 for _, i := range sli {
330 if s, ok := i.(string); ok {
331 res = append(res, s)
332 } else {
333 return nil
334 }
335 }
336 return res
337}
338
339func parseScriptFrom(s string, opMap map[string]byte) ([]byte, error) {
340 var res []byte

Callers 1

doScriptJSONTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected