georgysavva / scany

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

Column names that contain numbers #99

Closed shzxcv closed 2 years ago

shzxcv commented 2 years 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 2 years ago

Sorry, the tag was incorrect.