#[GORM] Custom Data Type Scanner Method Never Get Called

3 messages · Page 1 of 1 (latest)

rotund sonnet
#

I was trying to create a custom datatype for GORM.
It will have a Scan() and Value() method of course.
Somehow, my Scan() method never called.
Please read issue: https://github.com/go-gorm/gorm/issues/6138 for more detail.

Any explanation for this one?
Thanks in advance!

GitHub

Description I have a custom data type and its Scanner method that will check for any data input // TimeString type type TimeString string func (t *TimeString) Scan(value interface{}) error { fmt.Pr...

mellow lodge
rotund sonnet
#

Correct, I did it followed GORM docs about making custom data type.