GORM models with pkgsite project architecture

Hi. I want to use https://github.com/golang/pkgsite project architecture. I’ve almost implemented this, but I don’t know how to make the correct implementation for various models with GORM (for adding, getting or updating). In this architecure, all models are stored in the internal/discovery.go file. Any ideas?

Should i use this architecture or is it better to use https://github.com/bxcodec/go-clean-arch, for example?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.