I want to create a struct
to represent a DB model using Go
with gorm
.
I have a table with records that have a field of type bit(1)
which represents a binary value (0 or 1).
How can i make sure it doesn't "conflict" with my Go struct definition? I guess using bool
as a type is not the correct answer?