MCPcopy Create free account
hub / github.com/SeldonIO/goven / StringSliceToInterfaceSlice

Function StringSliceToInterfaceSlice

sql_adaptor/sql.go:120–126  ·  view source on GitHub ↗

StringSliceToInterfaceSlice is a helper function for making gorm queries.

(slice []string)

Source from the content-addressed store, hash-verified

118
119// StringSliceToInterfaceSlice is a helper function for making gorm queries.
120func StringSliceToInterfaceSlice(slice []string) []interface{} {
121 interSlice := []interface{}{}
122 for _, val := range slice {
123 interSlice = append(interSlice, val)
124 }
125 return interSlice
126}

Callers 2

MakeQueryMethod · 0.92
MakeQueryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected