How do I convert the following slice of struct to slice of interface?
type BatchImportData struct {
Name string
SetHash []string
SetMembers []string
}
var b []BatchImportData
This is so I can batch import data into Neo4j, as the Neo4j driver requires a slice of interface when the slice of struct is passed as a parameter.
https://github.com/neo4j/neo4j-go-driver
Cypher Type Driver Type
List []interface{}