Persisting custom set data type using GORM golang
问题 I have created a custom Set Data type in go, which i am using to define one to many relationships. For example in my Schema, i have the following struct definition type Doctor struct { firstName string lastName string capabilities commons.Set } Here capabilities is a set of strings which have the following values chat, audio, video , with this setup i am trying to persist the above struct into MySQL using the GORM library, but when i do this i get the following error panic: invalid sql type