Question: Please help me solve this WEB problem BE - https://github.com/IlyaSkorychenko/step-go.git FE - https://github.com/IlyaSkorychenko/step-react.git Task: Add button When clicking on the button, the text N days
Please help me solve this WEB problem
BE - https://github.com/IlyaSkorychenko/step-go.git FE - https://github.com/IlyaSkorychenko/step-react.git
Task: Add button When clicking on the button, the text "N days are left until the new year" appears Transferring the current date to the server via the GET parameter Add an endpoint for calculating the number of days until the new year The endpoint must send a JSON object of the format: { days: n } *(a task with a server as an additional) **hint for the server part of the task: func newHandler(writer http.ResponseWriter, req *http.Request) { query := req.URL.Query() current := query["current"][0] parse, _ := time.Parse(time.RFC3339, current) daysLeft := 365 - parse.YearDay() }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
