MCPcopy Create free account
hub / github.com/deepfence/ThreatMapper / StringArrayToInterfaceArray

Function StringArrayToInterfaceArray

deepfence_utils/utils/utils.go:574–580  ·  view source on GitHub ↗
(a []string)

Source from the content-addressed store, hash-verified

572}
573
574func StringArrayToInterfaceArray(a []string) []interface{} {
575 l := make([]interface{}, 0)
576 for _, i := range a {
577 l = append(l, i)
578 }
579 return l
580}
581
582func BoolArrayToInterfaceArray(a []bool) []interface{} {
583 l := make([]interface{}, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected