#Go

50 posts

Build a Desktop App with Wails #3: Connecting Go and the Frontend — Method Bindings and Events
5 min read

Build a Desktop App with Wails #3: Connecting Go and the Frontend — Method Bindings and Events

Pinning down the binding rules in a table, building a todo-list backend in Go, and wiring it to a React frontend. Covers auto-generated TypeScript models for structs and the event system that pushes data from Go to the UI.

Build a Desktop App with Wails #2: Project Structure and the Dev Loop — wails dev and Bindings
6 min read

Build a Desktop App with Wails #2: Project Structure and the Dev Loop — wails dev and Bindings

Walking through what each of main.go, app.go, frontend, and wails.json does in a project created by wails init. Covers the hot-reload dev loop and how the auto-generated binding code flows.

Build a Desktop App with Wails #1: What Wails Is — Lightweight Desktop Apps in Go
5 min read

Build a Desktop App with Wails #1: What Wails Is — Lightweight Desktop Apps in Go

Getting started with Wails, the framework for building desktop apps with Go and a web frontend. From how it differs from Electron and Tauri, through installation and the wails doctor check, to running your first app.

Gin Basics #7 Project Structure and a Mini REST API
5 min read

Gin Basics #7 Project Structure and a Mini REST API

Split the code accumulated in one file into layers, separate out configuration, and finish the series with a mini REST API.

Gin Basics #6 Database Integration (GORM)
6 min read

Gin Basics #6 Database Integration (GORM)

Attach GORM and build a CRUD API that handles real data. Covers everything from model definition to create, read, update, and delete.

Gin Basics #5 Middleware
5 min read

Gin Basics #5 Middleware

How to bundle common processing applied across many handlers — logging, recovery, authentication — into middleware.

Gin Basics #4 Responses — JSON, Status Codes, Errors
4 min read

Gin Basics #4 Responses — JSON, Status Codes, Errors

Covers response formats beyond JSON, how to handle status codes, and how to build consistent error responses.

Gin Basics #3 Request Binding and Validation
5 min read

Gin Basics #3 Request Binding and Validation

Binding request bodies into structs, and validating input with validator tags.

Gin Basics #2 Routing and Handlers
5 min read

Gin Basics #2 Routing and Handlers

How to read path parameters and query strings, and how to group endpoints with router groups.

Gin Basics #1 Getting Started and Your First Server
7 min read

Gin Basics #1 Getting Started and Your First Server

From the gaps you hit with net/http alone to installing Gin and running your first HTTP server. The starting line of the Gin track.

Go Practice #6 Testing and Deployment — httptest and Docker
6 min read

Go Practice #6 Testing and Deployment — httptest and Docker

Handler tests with httptest, integration test patterns, Docker multistage builds, and a small operations checklist.

Go Practice #5 Middleware Patterns
6 min read

Go Practice #5 Middleware Patterns

Standard middleware built from chains of http.Handler adapters — logging, auth, panic recovery, request ID, CORS.