I'm trying to write a Gorm custom data type: https://gorm.io/docs/data_types.html
type MyDataType struct {}
func (f *MyDataType) Scan(value interface{}) error {
//
}
func (f MyDataType) Value() (driver.Value, error) {
//
}
For some reasons, I need to access context in Scan or to be able to retrieve field tags.
Is there a way to do this ? Thanks