|
🔗 From the web |
|
|
|
Comparing plain SQL, ORM and GraphQL performance in Golang ✅ |
|
|
Using GraphQL instead of SQL for server development saves lines of code This tutorial evaluates how to use GraphQL to render server-side HTML templates. It compares a GraphQL solution to bare-bones SQL and to an ORM. The tutorial uses Golang with Graphjin for GraphQL, GORM for the ORM and PGX for the bare-bones SQL solution. |
|
|
|
|
|
|
How Golang Evolves without Breaking Programs |
|
|
Speaking at Gophercon 2022, the principal engineer for the Go programming language vowed that the Go will never not be backward compatible. |
|
|
|
|
|
|
The carcinization of Go programs |
|
|
Sometimes you just need to embed this one library written in another language into your program. This is a common thread amongst programmers time immemorial. This has always been a process fraught with peril, fear, torment, and lemon-scented moist towelettes for some reason. Normally if you want to call a Rust function from Go, you have to go through some middleman like cgo. This works and is somewhat elegant for how utterly terrible a hack cgo is. However, the main problem is that when you use cgo to link a Rust function into a Go program, you need to copy around the shared object that Rust generates. You can't check this shared object into your source tree (it needs to be unique per OS distribution per OS per CPU architecture, much like normal dynamically linked binaries are). |
|
|
|
|
|
|
Creating transparent animated GIFs with Go and gg (golang) |
|
|
The image/gif package of Go's standard library makes it quite easy to create animated GIF images. All you need to do is create your individual frames as an array of *image.Paletted and use gif.EncodeAll() to encode them into an animated GIF.
|
|
|
|
|
|
|
SSH port forwarding with Go |
|
|
This post shows how to set up SSH port forwarding ("tunnels") - both local and remote - using the extended Go standard library. |
|
|
|
|
|