Closed everton-sales-branco closed 5 years ago
Example code does not work. https://gist.github.com/nakagami/4f6c0693b3793d3ebd6918efeab1100a
I hope to support sqlx.
I'm add column_name_to_uppper parameter to driver.
And example code seems good work. https://gist.github.com/nakagami/4f6c0693b3793d3ebd6918efeab1100a/revisions#diff-9edf3c0a6ae578d191deef888bec08f6L40
Have another problem with sqlx ? I hope someones test.
Why must the first letter of the structure variable be capitalised?
This works: type Place struct { Country string City sql.NullString TelCode int }
But, when rename "Country " to "country", then not:
type Place struct { country string City sql.NullString TelCode int }
It gives : "missing destination name country in *[]main.Place" error.
Hi @eztEgyed,
This is how Go works, here is a example that explain
https://tour.golang.org/basics/3
In summary, for Go if the first letter is capitalized is exported, if is not capitalized is only visible in the package
I'm trying to use the library "github.com/jmoiron/sqlx", but returns nothing. There is a known incompatibility?