Probeer pq.StringArray . te gebruiken typ voor []string type MyStruct struct { Id int Data pq.StringArray }