Post details
A beautiful program to read your RSS/Atom feeds right in the terminal! - GitHub - TypicalAM/goread: A beautiful program to read your RSS/Atom feeds right in the terminal!
A beautiful program to read your RSS/Atom feeds right in the terminal! - GitHub - TypicalAM/goread: A beautiful program to read your RSS/Atom feeds right in the terminal!
Nice to see that the excellent gorilla/mux may have been revived
Introducing dmd-web
, a web frontend for Dependency Management Data (DMD) (2 mins read).
Introducing a web frontend for the dependency-management-data project, to provide a better, centralised interface for interacting with the data.
An elegant way of combining test transactions with Go’s built-in test abstractions.
Sharing state between net/http
method calls in Go (1 mins read).
How to construct a struct
in Go that can have its state shared between HTTP server handler functions.
Learn about the upcoming go1.21 performance improvements that reduce the overhead of execution tracing from up to 20% to less than 1% for most applications.
Using go.mod
versions to go install
a binary (1 mins read).
How to use go install
to install a binary from the version tracked in go.mod
.
Checking the migration status with golang-migrate
(1 mins read).
How to check what version of the schema is curently applied when using golang-migrate
.
Go bindings to SQLite using Wazero. Contribute to ncruces/go-sqlite3 development by creating an account on GitHub.
Introducing openapi-sorbet
, a command-line tool for generating Sorbet types from OpenAPI (2 mins read).
How to generate Sorbet type-checked models from OpenAPI specifications.
A tool to show what AWS account and identity you're using. - GitHub - benkehoe/aws-whoami-golang: A tool to show what AWS account and identity you're using.
A simple, fast, and fun package for building command line apps in Go - GitHub - urfave/cli: A simple, fast, and fun package for building command line apps in Go
Go subcommand library. Contribute to google/subcommands development by creating an account on GitHub.
Getting a --version
flag for Cobra CLIs in Go (2 mins read).
How to get Cobra to provide a --version
flag.
Importable package that parses version info from debug.ReadBuildInfo(). - GitHub - carlmjohnson/versioninfo: Importable package that parses version info from debug.ReadBuildInfo().
The Lazy engineer's guide to running your Go web application to AWS Lambda (4 mins read).
How to take a Go web application and move it to AWS Lambda with two lines of code.
Upgrading a Go project from pgx v4 to v5, and more specifically, from sqlc’s <code>pgx/v4</code> to <code>pgx/v5</code> driver (the hard part).
Which OS and CPU architecture is this binary compiled for? (4 mins read).
How to use Go to parse an arbitrary executable to work out the Operating System and CPU architecture it's compiled for.
Creating an HTTP 404 handler for Go net/http
servers (2 mins read).
How to add a catch-all 404 handler when writing HTTP servers with Go's net/http
server.
📖 100 Go Mistakes and How to Avoid Them. Contribute to teivah/100-go-mistakes development by creating an account on GitHub.
Made by a minimal, responsible and friendly person.
Serving the current directory over HTTP with Go (1 mins read).
How to use Go's standard library to serve the current directory over HTTP.
Touring the ORM and Postgres landscape in Go, and why sqlc is today’s top pick.
Generates Go (golang) Structs from JSON schema. Contribute to elastic/go-json-schema-generate development by creating an account on GitHub.
Extension handlers for the slog library. Contribute to galecore/xslog development by creating an account on GitHub.
The difference between nil and empty slices are a common point of confusion for newbies to Go. This post discusses how they differ and when to use each one.
🌈 slog.Handler that writes tinted logs. Contribute to lmittmann/tint development by creating an account on GitHub.
TIL that Go Lambda functions now have a nice way to perform cleanup without ugly workarounds.
Aidan W Steele (@__steele)Wed, 29 Mar 2023 06:28 +0000
Generating Equal
methods for Go structs with goderive
(3 mins read).
How to use goderive
to generate an Equal
method between structs, so you don't have to.
Who is going to build it?
What I learned by proposing and implementing a new feature in the Go standard library.
Automating boilerplate/scaffolding code with custom code generation in Go, with jen
(3 mins read).
How to generate Go code using github.com/dave/jennifer
.
Debugging HTTP Client requests with Go (2 mins read).
How to add debug logging to http.Client
in Go.
Say goodbye to preemptive interfaces
Today, we're excited to announce ngrok-go, our idiomatic Go package for embedding secure ingress directly into your Go applications. If you’ve used ngrok before, you can think of ngrok-go as the ngrok agent packaged as a Go library.
A hot take.
Getting a --version
flag for Cobra CLIs in Go, built with GoReleaser (2 mins read).
How to get Cobra to provide a --version
flag when using GoReleaser.