georgysavva / scany

Library for scanning data from a database into Go structs and more
MIT License
1.23k stars 67 forks source link

Column names that contain numbers #99

Closed shzxcv closed 1 year ago

shzxcv commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.

type Review struct {
  Price1 int64 `json:"price_1"`
}
scanning all: scanning: scanning: doing scan: scanFn: scany: column: 'price_1': no corresponding field found, or it's unexported in Review

Is there a way around this?

shzxcv commented 1 year ago

Sorry, the tag was incorrect.