I have an application that creates a user at the database and returns his information (with struct). and I want to send the user model to the client (response of the web server), without password (or more information that I don't want the client will get). what the right way to do that? make a "UIUser" struct with the only fields that I want to send the client and convert the original model to this struct? or user interface?
and of course, if you can give me an example to solve this problem.