Julien Sellier

#go

Rotating Logfile in Go

Implementing a simple rotating logfile in Go.

Read this post

Simple Sitemap HTTP Handler in Go

Simple Go HTTP handler that pre-renders and serves a sitemap.xml file.

Read this post

Parsing and Rendering Markdown in Go

Simple helper to parse and render Markdown in Go.

Read this post

Sending Emails in Go

Simple helper to send emails (via an external SMTP relay) in Go.

Read this post

Merging Multiple File Systems (fs.FS) in Go

Simple helper to merge multiple fs.FS in Go.

Read this post

Generating (Human-Friendly) IDs in Go

Simple helper to generate cryptographically-safe random IDs in Go.

Read this post

Multi-stage Go Container Build

Build your Go container properly with multi-stage builds.

Read this post

Go Panic Recovery HTTP Middleware

A simple Go panic recovery HTTP middleware implemention.

Read this post

Pushing Logs to Loki with Go

Push logs to Loki HTTP API with Go (only using the standard library).

Read this post