Subscribe
Fenix

Technologies, Hacks and Games...

Latest posts

GitLab CI from zero: stages, jobs, artifacts and caches

A first .gitlab-ci.yml for shorty, the Go URL shortener: stages, jobs, workflow rules, a Postgres service, test reports and the difference between artifacts and caches. Checked locally with gitlab-ci-local and the real job commands.

7 min read

Golang Tutorial 11: Methods and interfaces

Methods on your own types, implicit interfaces, small interfaces like io.Reader, type switches, the nil interface trap and "accept interfaces, return structs", with runnable examples on Go 1.27 and a small io.Writer exercise.

8 min read

Reading S3 objects in golang without trusting the size check

A HeadObject size check followed by a GetObject is a race: the object can be replaced with a huge one in between. Here is how I read S3 objects in Go with io.LimitReader and one extra byte, so the cap holds no matter what the size check said.

5 min read