In a clean architecture approach to software the entities are the innermost layer and should not depend on something like an ORM.
For convenience I would like to use an ORM in my project and gorm seems to be a popular library. In the gorm docs the recommended way to use it is by having the gorm.Model struct included in the structs you want to persist in the database.
When trying to use gorm in my project and following clean architecture I thus end up with a mapping layer which maps my entities to and from a persistence model specific to gorm in order to keep the gorm dependency out of my entities. This seems to eradicate all the benefits of using an ORM and in e.g. this blog post is explicitly warned about.
It seems to me avoiding the mapping layer while following clean architecture can only be achieved by using a less invasive ORM or even just a sql extension like e.g. sqlx where I can use my entities directly?