Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Please provide additional details in your answer. As it's currently written, it's hard to understand your solution. Commented Aug 27, 2021 at 22:35
  • Yes, I've made the same choice to separate "views" (e.g. what the API returns) from the database models, as I certainly don't want to return a password hash accidentally. Unfortunately, this just means lots and lots of copying between structs and if a new database field is added, I have to find all the places it is referenced and add it, so it's easy to miss things. I'll look for Golang automappers. Commented Aug 27, 2021 at 22:58