#Golang
8 posts
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)
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
How to bundle common processing applied across many handlers — logging, recovery, authentication — into middleware.
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
Binding request bodies into structs, and validating input with validator tags.
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
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 Basics #1 Getting Started and Your First Program
Why Go, setting it up, and compiling and running your first program — the starting line of the Go track.