I am using the latest version of xorm and want to create a simple go struct as follows:
types myStruct struct {
isDeleted bool `xorm:"'isDeleted' tinyint(3)"`
}
I know the bool type in go evaluates to true and false, but I need to map it to a mySql database where the values are tinyint(3) and 1 maps to true and 0 to false. In the example above no matter what my post requests look like isDeleted always evaluates to 0. Thanks in advance for any advice on this issue. This https://github.com/go-xorm/xorm/issues/673 may provide some context.