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