That's it. Gave me a bit of a rage tbh, but was a small issue nonetheless. It's probably written in the docs, or not in the docs(docs is quite sparse in terms of samples which is infuriating tbh. I quite like documentations that doesn't make me assume stuff) to not put a space between the semi-colon after a tag and the value, but I thought it would look pretty to do that and that caused the issue, for MySQL at least.
So if you did something like gorm:"column: status", it would take the space in front as well and use that as your column name. Removing that or not adding it in the first place fixes the issue.
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: saeidee
Golang's core libraries like encoding/json is also behaving the same(you can see it is not trimming the field name https://go.dev/play/p/F1aQtJHV_zX).
However, feel free to open a PR and update the docs https://github.com/go-gorm/gorm.io