Answer the question
In order to leave comments, you need to log in
How to control rendering of html elements in Go?
Good day to all! Recently there was a need to write a simple online store. Previously, I did not deal with the backend, so after reading a few articles I decided to write the server part in Go. But in the process of writing, the following situation arose: on the web page in the top bar there are links "Registration" and "Login", which, when the user logs into his account, should change to the user's login, when clicked, the user goes to the profile, and "Logout ". So far, I have managed to implement this using javascript on the frontend, and communication between the frontend and the backend takes place using a cookie, in which the session id is written and a json file containing information about the user. It seems to me that such a design is not entirely safe, so the idea came up to transfer all the drawing logic to the backend.
Therefore, I had a question - how in this situation it is possible to implement the drawing logic only on Go and is it possible?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question