Suppose there is an external library libA
who declares NotMyType
.
type NotMyType struct {
NotMyField string
}
And you would like to embed it with one of your own types, which you use with an ORM, which uses the tags to adjust column properties.
type MyType struct {
SomeData0 string `orm:"nullable"`
SomeData1 string `orm:"nullable"`
libA.NotMyType
}
For example, columns MyType.SomeData0
and MyType.SomeData1
are NULLABLE.
Is it possible to tag NotMyField
with orm:"nullable"
without modifying NotMyType
?