#go

2 posts in this collection

Emerging JavaScript pattern: multiple return values

In this article, I want to explore an interesting pattern that I am seeing more and more in JavaScript code which allows you to return multiple values from a function. You probably know already that JavaScript does not support multiple return values natively, so this article will actually explore some ways to “simulate” this behavior. One of the most famous usages of this pattern I have seen recently is within React Hooks , but before delving into that, let’s see what I mean with “multiple return values…

Simple echo server written in Go, dockerized!

In this post we will see how to write a (very) simple Go server app and how to put it into a Docker container and run it. Disclaimer : I’m an absolute beginner with both Go and Docker and this is just an experiment I did to start to explore this two interesting technologies. If you’ll find something weird or wrong you are very encouraged to scream at me in the comments ( Comments ), I will be extremely thankful ;) Introduction We are going to write a simple echo server in Go and then we will pack…