Open nelsonic opened 5 months ago
Gonna have a look at it 👌
Go
recently broke into the Top 10 Programming Languages on GitHub
: 🎉
https://github.blog/2023-11-08-the-state-of-open-source-and-ai/#the-most-popular-programming-languages
So we can update that section in the README.md
. 📝
We could use a web framework for this example see: #5 🔍 Or we can try and make it as barebones as possible. 💭 What are your thoughts? 🤔
We need write a lightweight (unauthenticated)
WebSocket
example inGo
that pushes data to aPostgres
Database. Essentially we are going to be replicating the hits which just receives requests and logs them to the DB.The most similar project is: https://github.com/dwyl/hits-nodejs in terms of simplicity/structure except that the Node.js version is backed by
fs
notPostgres
.Todo
Go
in this repo under the subdirectory/tutorial
Starting point: https://gowebexamples.com/websockets looks like a concise example. Which uses https://github.com/gorilla/websocket ref: https://gorilla.github.ioNode/JS
🔰Go Doc
comments to document all functions, see: https://tip.golang.org/doc/comment 📘GitHub CI
pipeline to ensure tests are run on eachgit push
. 🤖README.md
that you feel are needed.GO!
@LuchoTurtle this is a task for whenever you feel you have "free" time or are "waiting" for someone to ask you to do something. Do it to the best of your abilities because we will be showing this to people who need to transition from
Node.js
toGo
. As usual, please log your progress as comments in this issue and/or commits in the brach. Thanks.