Closed macnibblet closed 7 years ago
I have implemented a custom type the worked fine with sqlx, but I cannot get it to work here.
The error i'm getting is panic: Could not find struct tag in type PerformerEntity:db:"aliases"`
panic: Could not find struct tag in type PerformerEntity:
The mapping
type PerformerEntity struct { Id uint8 `json:"id"` ExternalId uint8 `db:"external_id"json:"externalId"form:"uint8"` OriginService string `db:"origin_service"json:"originService"` OriginSection *string `db:"origin_section"json:"originSection"` StageName string `db:"stage_name"json:"stageName"` Aliases PGStringArray `json:"aliases"` UpdatedAt time.Time `db:"updated_at"json:"updatedAt"` CreatedAt time.Time `db:"created_at"json:"createdAt"` }
I have implemented a custom type the worked fine with sqlx, but I cannot get it to work here.
The error i'm getting is
panic: Could not find struct tag in type PerformerEntity:
db:"aliases"`The mapping