Adding Headers to HTTP Requests in Go

Build requests with http.NewRequest() to add headers, then send them with http.Client{}

2026-01-30 ·  · 2 min · 308 words
Using time.Sleep() in Go

Examples of using time.Sleep() in Go because the official documentation is lacking.

2026-01-29 ·  · 2 min · 382 words
Validate HTTP Status Codes in Go Using Built-in Constants

Use Go net/http constants like StatusOK and StatusNotFound for more readable code.

2025-05-24 ·  · 3 min · 453 words
Iterate Through Strings in Go with a for-range Loop

You can use for-range loops to iterate through strings in Go without splitting because Go handles strings as byte slices.

2024-08-27 ·  · 2 min · 244 words
Insertion Order Iteration of Maps in Go

Iterating through Go maps in insertion order.