Answer the question
In order to leave comments, you need to log in
How to work with linked models in golang?
I ran into a problem using gorm. For example, there is a site model that has relationships with the user model. And that, in turn, has a connection with site.
type User struct {
ID int `json:"id"`
Sites []Site `json:"-"`
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question