If one has a list of values, for example 1,2,3, to filter data by this this one should use ANY and pq.Array constructions:
ANY
pq.Array
Task is not that simple, especially with GORM