Am bored.

So learning golang as backup plan. (edited) Right now, I am pretty much on the level in "start writing code" after finishing go tour.

So for starter, i started writing an golang code that serve http code.

Fine.

But then once i started wanting to set an header

Mother fuck. I am stuck again.

So then i am thinking of writing an http + websocket server in golang

Because i have no idea how http.ResponseWriter works, So i asked ChatGPT to write me a code to see how it was being done

But holy moly i am still not able to comprehend my head reading and understanding the code.

I am back again to the old days when i am not mastered in coding yet

Reply to this note

Please Login to reply.

Discussion

how about using fiber? https://docs.gofiber.io/api/client

looks more simpler

As of now, I am getting used to net/http. So not thinking of downloading another mod just for http.

Now only need for websocket...